Regex is COOL

Posted by attriel June 16th, 2010

We started on a Tuesday this month didn’t we?  damnit!

Well, on an unrelated note, Regular expressions kick ass.  Here’s one I cribbed together to break things on :-separated pairs with optional preceding un-paired text

We started on a Tuesday this month didn’t we?  damnit!

Well, on an unrelated note, Regular expressions kick ass.  Here’s one I cribbed together to break things on :-separated pairs with optional preceding un-paired text

We started on a Tuesday this month didn’t we?  damnit!

Well, on an unrelated note, Regular expressions kick ass.  Here’s one I cribbed together to break things on :-separated pairs with optional preceding un-paired text

‘/(.*(?!s+w+:|$))(w+):(.+(?=s+w+:|$))/U’

Also, zero-length lookahead is sick and twisted and I liky!

Comments are closed.