From: Scott Pack Date: 2005-05-18T08:24:25+09:00 Subject: Variable substitution in a regex Hi, I am new to Ruby. Can I substitute the value of a variable into a regular expression? For example: exp = /(\d+)/ #works exp = /(\d+)/ + 'some string value' #Not! Thanks, S __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail