A couple of comments. Use a HTML Parser if at all possible.
will thank you in the long run. I think
someone has already suggested that. Apart from that though
so far I can only see one thing wrong with the regex. You
specify an optional open quote with \3 and an optional close
quote matching \3 but in between you use \3 with a negative
lookahead and for the times when there isn't a \3 bad stuff
will happen. I'm not sure really what will happen. IIRC these
catch variables are guaranteed
to be undefined when you
start a new match or substitution.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||