in reply to Reading into a hash from regex
You already got some good alternative snippets that fix these errors, but I thought it would be helpful to point them out explicitly. Namely, your regexp will give the wrong results when what immediately follows the = matches \s. Therefore you should replace the .*? in the captures with .+?. Also, you should add the /s modifier to the regexp if you want the . in the captures to match \n.
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading into a hash from regex
by songahji (Friar) on May 17, 2005 at 13:42 UTC |