I'm trying to capture the base URL and "everything after that" into two
arguements for all web page elements related to href and src properties in tags.
EG:
<a href = "http://www.google.com/">
would return 'www.google.com' and '/'
So I tried this:
$string =~ m|(?:href|src)\W+(?:http://)?([^/]*)(/[^'"]*)(?:['"])|gsm
But it's not working very well.
I get this error
Unmatched ( in regex; marked by <-- HERE in m/( <-- HERE ?:href/ at
http_filter.t line 14.
I also tried: m|(?:(src|href)) with similar results.
I'm not sure anymore....
I thought this would have been relatively easy.
help?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>