On 06/03/2013 15:58, Nick wrote:
Thanks, that did exactly what I was looking for. But, I realized I
also need to do this for anchor tags with relative links, such as:
<a href="/xxx/yyyyyyyy/zzzzzzz.shtml">ordinateur de bureau</a>
A text filter something like this should do everything you want provided
you haven't got more than one URL per line.
#!/usr/bin/perl
use strict;
my $f = "/tmp/url.txt";
open my $fh, ">", "$f" or die $!;
while (<>) {
/href ?= ?"([^"]*)"/ and print $fh "$1\n";
print;
}
`open -a "bbedit" $f`;
#JD
--
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.