$line =~ m/href=\\\"?(http:[^\\>\\s\\\"]+)/i;
This line matches an absolute url reference, starting with the protocol \"http:\". It matches from the string \"href\" used in the <A> tag. It could match the following strings:
href=\"
http://www.sarum.dk\" or
href=http://www.sarum.dk
$line =~ m/href=\\\"?[.]\\/([^\\>\\s\\\"]+)/i;
This line matches a relative url, ie. one that does not start with the protocol. Otherwise it has the same properties as the other. It will match:
href=\"./index.htm\" or
href=./folder1/folder2/index.htm
None of them are foolproof though. They will eg. match this
href=\"
http://www.sarum.dkwhich is not a valid html format. If you begin your value-field with a quotation (\"), it should also end with one.