Log in

No account? Create an account
If your regular expression looks like this: - A Suburbs Boy Living a Country Life [My Flickr Photos]
August 30th, 2006
01:38 pm


Previous Entry Share Next Entry
If your regular expression looks like this:


...you might be doing something wrong.

On the other hand, my replace string looks like:


Current Mood: amusedamused

(6 comments | Leave a comment)

[User Picture]
Date:August 30th, 2006 06:14 pm (UTC)

My regular expression looks more like :)
[User Picture]
Date:August 30th, 2006 07:05 pm (UTC)
This is why perl lets you put comments in regular expressions.
Date:August 31st, 2006 12:42 am (UTC)
Amen. /x is your friend.
[User Picture]
Date:September 6th, 2006 08:35 pm (UTC)


Eclipse != as RE friendly as Perl
[User Picture]
Date:August 31st, 2006 03:54 am (UTC)
it's almost 12am and that hurts my head to look at and my brain is not functional enough to grok that.
[User Picture]
Date:August 31st, 2006 11:55 am (UTC)

it also looks like LJ's

formatting hosed it up..

it's also wrong, because if I have two matching C:whatever tags, the first of which has EL in an attribute, and the second not, it will incorrectly grab the first open tag and the first close tag...

my RE needs to address nested tags--i.e. match the open tag with the attribute of interest, any number of subsequent, identical tags, regardless of whether they are of interest, the SAME NUMBER of closing tags matched inside the original tag, and end by matching the first tag's close...

the hurtiness, it burns....
Powered by LiveJournal.com