On Jul 16, 7:51*am, msciwoj <m...@epf.pl> wrote:
> Does any one have an idea is it possible to catch the block that has
> no nested blocks of its type using regular expressions?
> In other words how to catch
> <blockbeginmark>.....-NO <blockbeginmark> until <blockendmark>
>
> For instance, can
> <div> ..... </div>
> block can be caught with the condition it has no nested <div> blocks
> in it?
>
> Any ideas?
Regular Expressions are not really good for context aware matching and
parsing (which is what your match looks to be). For that, I would
recommend you do a little search on CPAN for HTML parsing modules such
as HTML:

arser
Cheers!
--
Donato Azevedo