in reply to Re^2: combine two-part regex test
in thread combine two-part regex test

And if you tighten the regex to this?

m[(?smx: Security \s+ Code \s+ Matched \s* </th> \s* <td> \s* N/A)];

The only concern I see here is the possibility of the <td> having attributes?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^4: combine two-part regex test
by perrin (Chancellor) on Jan 30, 2007 at 20:12 UTC
    That's probably as good as it can get without grabbing a real parser or doing it in 2 parts. The only trouble with this approach is that it's very vulnerable to changes in the td/th stuff, which is why I was trying to key off just the row markers.