in reply to Boolean operators in PERL regexp?

m#<a href="?(?!/|#|javascript)([^">]*)# or something near that. Note that there are much better tools for parsing HTML than regular expressions. Try HTML::TokeParser or HTML::Parser, and save yourself a headache.

-enlil