Hi, My problem is to match HTML tags with RegExp. I managed to match something like this, properly:
la la la <p>a paragraph</p> bla bla bla <p>another paragraph</p> ya ya ya But when nested, there arises problems: <p>a paragraph <p>bla bla bla</p> la la la</p> It matches <p>A paragraph <p>bla bla bla</p> instead of matching the most inner part: <p>bla bla bla</p> How can one write an expression to match always the most inner part? I couldn't write an expression like "match a non-greedy <p>.*</p> which does not have a <p> inside. Note: Most probably there is a module for this but: - I want to learn the logic, - I don't use Perl in this project, - Actually my problem is different than matching HTML tags but I choose them to explain my problem, easily. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/