[wellylug] Regex, replace stuff in command line help...
Jo Booth
thegeek at mangee.net.nz
Thu Jun 29 10:14:59 NZST 2006
Trying to figure out how to get an id back out of a series of old
saved web pages.... haven't had to use Regular Expressions for
replacing stuff in wrath for a while...
Bunch of links.. in a html file random scattered, but in tables etc...
something like <a href="url or relative link/profile?u=mangee">
I want a list of the u= aliases. like I want - mangee
Bunch of files...
$ ls
backup1.html
backup2.html
backup3.html
...
backup300.html
$
Tried:
perl -pe 's/profile\?u\=(.*)"[.]/${1}/' *
Got:
The entire page.
I present i'm doing it by hand. 1150 to go. :( Theres gotta be a
better way!
Stupid databases that don't exist anymore. :|
-Jo
Jo Booth - MovieFest Trustee
http://moviefest.org.nz/06
NZs best amateur digital short movie
competition and festival.
AIM/iChat/ICQ: NZMovieFest
MSN: chat at MovieFest.org.nz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20060629/675ec5fc/attachment.pgp
More information about the wellylug
mailing list