regexp on String object
Posted by root Sun, 06 Jul 2008 11:04:00 GMT
Some of the more rarely used string methods:
str = "the tester"
str["tester"] #true, the String contains "tester"
str[/\w+\s\w+/] #true, the String matches the regexpstr[/(\w+)/] = ($1[0] - 32).chrRDoc Documentation