|Syntactic Confectionery Delight|
A regex that does this, but not that?by bradcathey (Prior)
|on Nov 14, 2003 at 23:25 UTC||Need Help??|
bradcathey has asked for the wisdom of the Perl Monks concerning the following question:
Every monk loves a good regex question, right, especially the golfers. Here goes:
I want to end up with the result:
but ended up with (not surprisingly):
Is there the possibility of (in plain English):
Would love to keep it down to one line, which started this whole thing. Thanks, monks.
I "joined" the monastery to learn to be a better Perl programmer (also, to write better defined questions :-) .This node has been a great help—regexes are almost a language of their own. pg used conditionals, danger and Cody_Pendant showed practical examples of word boundries. Sometimes you just need to be nudged over the learning hump. Now, I have some code to study. Thanks.
"A little yeast leavens the whole dough."