algebaric operations on a RegEx?

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Mon Apr 6 16:33:17 UTC 2009


On Sun, Apr 05, 2009 at 12:03:24AM -0400, Madison Kelly wrote:
> 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

And that's why I am really starting to hate perl. :)  The simpler it
gets the less readable it is.

-- 
Len Sorensen
--
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