From: David Nguyen Date: 2008-08-06T23:26:55+09:00 Subject: regular expression Hi, I need a regular expression for a filename : it must be composed with the following letters : a to z A to Z 0 to 9 dash sign - underscore sign _ then how can I compare a string with it : mystring =~ /myregex/ #return true or false does it works like that ? -- Posted via http://www.ruby-forum.com/.