regex help

Matrix Mole matrixm at gmail.com
Thu Dec 20 19:49:26 MST 2007


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

JT Moree wrote:
> sorry, forgot the extra text
> 
> s|^(.*)/home/matrixm(.*)/home/matrixm(.*)$|$1/home/matrixm$2/home/matrixm/tmp/$3|
> 

I'm guessing that perl uses () as the manner in which to save the
results of a search much like \( \) is used in vi and sed scripts. Then
$1 would recall the first saved expression similar to \1 in vi/sed. That
will give me enough to do what I need, thank you.

Matrix Mole
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHaym2NtosHRPp48MRAmNXAKCfo0rbEO/gsU7+KSlBULWe5xaekQCePhGS
pq01+/IXhVlTweLA+ttPwhY=
=CWUK
-----END PGP SIGNATURE-----


More information about the PLUG-discuss mailing list