> I need to find every ocuring "<b>.......</b> blok in a text, 
> even If this ocurs multiple times on 1 line.

If you're doing HTML it's worth looking HTML::TokeParser for a quick and
easy and generally reliable means of extracting the contents of the
'bold' element: great POD, too -- this is a slightly adjusted version of
an example included in the POD:

      use HTML::TokeParser;
      $p = HTML::TokeParser->new(shift||"index.html");

      while (my $token = $p->get_tag("b")) {
          my $text = $p->get_trimmed_text("/b");
          print "$text\n";
      }

Hth
-- 

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
                                        

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to