Hi, I require your guidance for the
following problems. Any suggestions are appreciated.
1.I have this following piece of , but I am unable to
get the required chunk of data i.e. the values between
<br>color="BA3B38"> and </td></tr>. But I am unable to get
past the first <br> in the first line. I tried
removing \n using translation $content =~ tr\n[]d;
but still program didn't work.
This is my Chunk of data :

$content='<td valign="top" align="justify"><font face="arial" size="2" + color="BA3B38">Java and databases make a powerful combination. <br> Getting the two sides <br> to work together <br> Takes some effort to work together JDBC 2 javax.SQL </td></tr>';
Following is my REGEX code :
$content =~ m /<td valign=\"top\" align=\"justify\"><font face=\"arial" size=\"2\" color=\"BA3B38\">(.*?)<\/td><\/tr>/mg
I tried using mg parameter for traversing multiple lines & global search but it didn't work.
I expect the following output but I'm not able to get any output.
Java and databases make a powerful combination. <br> Getting the two s +ides <br> to work together <br> Takes some effort to work together JDBC 2 javax.SQL

---------------------
-Sugar

In reply to Problem with Regular Expressions by sugarkannan

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.