in reply to Re: Regexp: Match anything except a certain wordin thread Regexp: Match anything except a certain word
You're assuming the target will come after the href, but the OP allowed for any order.
See my earlier post for the fix.