Can someone give me a regex or something I can use to force a <br> as HTML after each set of paranthesis? I need it to look like:

JacobGrimm: Well, I only joined in May, so I know nothing of the "old site". (19 minutes ago)
JacobGrimm: Hmm. Kudos to the Mod who got rid of that comment. (21 minutes ago)

And what we have to mess with is just one big block of code (below is the actual print). I'm trying to get my @lines = split "<br>", $tree->as_HTML; to actually be able to break on the BR tags

Chat at Allpoetry.com Tired of the same old? Over 300 creative dates for $20 or less! click here! Hello. Login or Register? PoemsPoetsContestsColumnsClassAdd linesFunBulletinStoreHelp Chatter Archives< Previous Chatter | Next Chatter >JacobGrimm: Well, I only joined in May, so I know nothing of the "old site". (19 minutes ago) JacobGrimm: Or rather, however it came to disappear. Maybe of blAck-roSe-aL's own volition... (20 minutes ago) Redstormy: I'm am just frustrated because I thought this would be better than the old site. (20 minutes ago) Seven Years: lol (20 minutes ago) JacobGrimm: Hmm. Kudos to the Mod who got rid of that comment. (21 minutes ago) JacobGrimm: Red you can't blame the site. Servers aren't flawless. Sadly. (22 minutes ago) JacobGrimm: No problem. (23 minutes ago) Seven Years: I'm new... just today (23 minutes ago)


In reply to force linebreak using HTML::Tree by coldfingertips

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.