http://www.perlmonks.org?node_id=1024817

qingxia has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I am pretty new to perl and please forgive me if asking too obvious question.

The string i would like to parse has following structure
<td some text here> N </td>
and i want to parse N using  $line  =~ /<td(.*?)>(.*?)<\/td>/ but unusually the string appears as
<td some text here> N </td>
the code which i'm using would miss that N. any ways to play around with it? thanks in advance. shawn