Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Every monk loves a good regex question, right, especially the golfers. Here goes:
I want to end up with the result: I tried: 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. Update: 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. —Brad "A little yeast leavens the whole dough." In reply to A regex that does this, but not that? by bradcathey
|
|