in reply to Make a Markup Method in Perl?
I know that you could check to see if the tag is around the text easily. It's Regular Expressions of course.
That's the hard way to do it. The easy way to do it is to write a parser to transform text into a data structure, then walk the data structure to transform it into another data structure from which it's easy to emit the right text.
Improve your skills with Modern Perl: the free book.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Make a Markup Method in Perl?
by stevieb (Canon) on May 16, 2012 at 06:53 UTC | |
|
Re^2: Make a Markup Method in Perl?
by perl.j (Pilgrim) on May 16, 2012 at 09:52 UTC | |
by chromatic (Archbishop) on May 16, 2012 at 21:02 UTC | |
by Anonymous Monk on May 16, 2012 at 14:26 UTC |