> #     =~ $re          =~ /<$re>/   ouch?
> 
> I don't see the win.

Naturally =~ $re is a bit cleaner, but we can't do that because =~ is 
smart match, not regex match.


> #     (?=...)         <before: ...>
> #     (?!...)         <!before: ...>
> #     (?<=...)                <after: ...>
> #     (?<!...)                <!after: ...>
> 
> Cute.  (Wait a minute, aren't those reversed?)

Hehe. I thought that was cool. 

/foobar<before: snafoo>/
/<after: snafoo> foobar/
 
You see, foobar before snafoo, which is what it is.
After snafoo, foobar.

It reads very nicely.



Luke

Reply via email to