From: Greg Hacke Date: 2011-05-11T09:49:22+09:00 Subject: Re: gsub and multiple-replacement 7stud -- wrote in post #997852: OK, I think it would be better to be a bit more specific... User logs into site. Credentials are verified via LDAP. At login, I am copying a .mobileconfig template file (xml/plist) and saving it as {username}.profile.mobileconfig This file contains placeholders for: {username} = bob@domain.tld {userroot} = bob {password} = mypassword I need to read it, modify it, save it and replace it. At that point, the user will get the index and be afforded to download this file. Thoughts? -- Posted via http://www.ruby-forum.com/.