algebaric operations on a RegEx?
Madison Kelly
linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Sun Apr 5 04:03:24 UTC 2009
Richard Dice wrote:
> s/<size>(\d+)<\/size>/"<size>" . ($1+4) . "<\/size>"/e;
Grah! So 'e' was the magic... I stand humbled before the
match-stick-master. :D
Madi
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list