in reply to Link script adjustment needed

You have several options. Forbid spaces. Forbid double quote marks. Remove the closing angle bracket in your regular expression.

In the interests of efficiency and efficacy, merlyn has written link verifiers. See his homepage. You might also have better luck with a module such as HTML::Parser or HTML::TokeParser, which can provide the 'href' attribute of an 'a' tag.

For reading this far, here's a regex I'd try for a quick and dirty solution:

$buf =~ /<a href="([^"])"/gis

Replies are listed 'Best First'.
Re: Re: Link script adjustment needed
by Anonymous Monk on Feb 27, 2002 at 11:15 UTC
    I tried $buf =~ /<a href="([^"])"/gis and it didnt print anything. I also cant seem to find the merlyn link verification script. I was hoping someone could help me modify what I have if that is possible? Thanks