in reply to Re^2: regular expression and nested tags
in thread regular expression and nested tags
No, it only affects /.*/. It doesn't affect any other part of the match, namely, the earlier /<div>/.
The following would do here:Is there a way to match a string contained between two delimiters which does not contain a given word? (not a class)
m{<div>(?:(?!</div>).)*</div>}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: regular expression and nested tags
by vitoco (Hermit) on Jun 12, 2009 at 22:23 UTC | |
by ikegami (Patriarch) on Jun 13, 2009 at 05:42 UTC |