From: Paul Rogers Date: 2007-07-11T22:18:27+09:00 Subject: create a string from a pattern? Im trying to come up with an easy way to generate a random string, based on a supplied pattern, maybe something like: String.from_pattern("\d\d\d@\w{3,5}.com") => "412@amnf.com" Ive used a standard reg exp format here, but it doesnt matter if it uses something else. Any simple way to do this? Thanks Paul