I think this is what you are asking for... $string=s/(\w+)_(NN|IN|AT)/$1/g; $string='<SN>'.$string.'</SN>';
Shawn ----- Original Message ----- From: "RNOORY" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 1:32 PM Subject: Replace Help to write the replace part of a RE. MySearch is =\w+_NN \w+_IN \w+_AT \w+_NN; My replace = the same string (without _NN, _IN,_AT) and enclosed in <SN> </SN> Result = <SN> control of the car </SN> Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
