Re: regex help

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Matrix Mole
Date:  
To: Main PLUG discussion list
Subject: Re: regex help
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
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss