in reply to combine two-part regex test

Would this work?

m[(?s:<tr.+Security Code Matched.+N/A.+</tr>)]

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^2: combine two-part regex test
by perrin (Chancellor) on Jan 29, 2007 at 21:26 UTC
    The problem is that if a different row in the table contains "N/A", it will still match.
        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.