[olug] String parsing question

Adam Haeder adamh at omaha.org
Thu Oct 6 21:59:30 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hail, all you regular expression gurus:

What's the best (fastest) way to get from this string:

User 1 <user1 at a.com>, User 2 <user2 at a.com>, User 3 <user3 at a.com>

to this:

user1 at a.com user2 at a.com user3 at a.com

Consider that there could be x number of addresses on the line, so I can't
always assume 3.

I'm racking my brains against sed and haven't come up with anything
workable yet. TIA

- --
Adam Haeder
Vice President of Information Technology
AIM Institute
adamh at omaha.org
(402) 345-5025 x115
PGP Public key: http://www.haederfamily.org/pgp.html

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFDRZ5CbHC3IXlHqBQRAnK0AJoC3izYLooFAFokFgP2215idzS21gCePiFi
Ik3rvn1lnF7oF8JwEGOtYo8=
=EHGV
-----END PGP SIGNATURE-----



More information about the OLUG mailing list