No Clean Feed - Stop Internet Censorship in Australia

Nigel Thorne's software development blog, focusing on finding simple solutions to real work problems.

Tuesday, November 11, 2008

Matching Ruby Regular Expressions Across Lines

Just a quick note: x.matches(/something.*/) will match all of one line.
To match all lines x.matches(/something.*/m) you need to put the 'm'.

Nice!

I found it here.

0 comments:

Search This Blog

Loading...

Blog Archive

About Me

My Photo
Nigel Thorne
I'm an agile developer with a focus in finding the simple solution that will scale.
View my complete profile

GitHub Projects