in reply to Re^2: Boolean operators in PERL regexp?
in thread Boolean operators in PERL regexp?

Whatcha talking about?
NOT /XYZ/ vvvvvvvvvvvvv >perl -e "$_ = 'ABCDEFGHIJKL'; print(/ABC((?:(?!XYZ).)*)JKL/);" DEFGHI

Replies are listed 'Best First'.
Re^4: Boolean operators in PERL regexp?
by lenrobert (Initiate) on Feb 25, 2005 at 17:41 UTC
    Ikegami, you're right. As it seems I needed some more help to use your code. Now it works, the final version is:
    /(<a href=("|))((?:(?!("|\/|#|javascript)).)*)(\s|"|>)/gi
    And $3 is the value of the href property.
    Thank you.