Re: regex help

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Matrix Mole
日付:  
To: Main PLUG discussion list
題目: 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