-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 05 April 2003 06:23, Doug Maynard wrote:
> I would like to lose all the whitespace characters in about a bazillion
> anchor tags - like f'rinstance:
>
> <a href="zoning/b3424/b342402.htm#General Rules for Development Control:">
> and
> <a name="General Rules for Development Control">
>
> It's obviously pretty easy to find all the whitespaces in the documents,
> but I'm getting pretty confused just picking out those in the offending
> tags.
i'm no RE guru, so this most likely isn't the most efficient of
implementations, but it seems to work so... ;-)
perl -pi.bak -e 'while (s/(<a\s*.+=\".*)\s(.*\"\s*>)/\1_\2/g) {} ' [files]
- --
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE: The 'K' is for 'kick ass'
http://www.kde.org http://promo.kde.org/3.1/feature_guide.php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+j5Um1rcusafx20MRAsZbAJ9b+SDFEB5Zy9ivDnN6vjTOpyvyOwCdHBLz
S+DE6PFu3HugP5sYlfDiQ6o=
=9CPq
-----END PGP SIGNATURE-----