Hi,
I was looking at ruby regular expressions and noticed that the following
commands all returned the same results:

"string"['r']               --> "r"
"string"[/r/]              --> "r"
"string"[/[r]/]            --> "r"


How does Ruby handle regular expressions? Does Ruby handle the
expression exp as 'exp' or /exp/?

This might be confusing especially since
"st'r'ing"[' 'r' ']
returns a parse error.

Leads appreciated.
Sunil Gangadharan








_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com