in reply to Re: Advanced regular expression help
in thread Advanced regular expression help
This is the output if that's what you seek:my $regex = '<div id="aaaa">([.\w\s]*?)(<ul id="ccc">[.\s\w]*?</ul>)?( +[.\s\w]*?)</div>';
Text 1 found text tex text more text Text 2 found text text text more text
|
|---|