Re: Replace with regular expression

2003-11-14 Thread Ricardo Pichler
Very thanks Jeff and Wiggins, this work perfectly! Regards, Ricardo Pichler - Original Message - From: "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> To: "Ricardo Pichler" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, November 14,

Re: Replace with regular expression

2003-11-13 Thread Jeff 'japhy' Pinyan
On Nov 13, Ricardo Pichler said: >I need replace in my string the characters in >upperCase for the same but preceding the simbol +. > >$myName="RicardoPichler"; >s/.../.../g; # to do this return "+Ricardo+Pichler"; > >$myName=~s/[A-Z]/\+[A-Z]/g; You can't use a regex on the right-hand side of a s

Re: Replace with regular expression

2003-11-13 Thread Wiggins d'Anconia
Ricardo Pichler wrote: Hi... I need replace in my string the characters in upperCase for the same but preceding the simbol +. Ex.: $myName="RicardoPichler"; s/.../.../g; # to do this return "+Ricardo+Pichler"; but like this: $myName=~s/[A-Z]/\+[A-Z]/g; but this don´t work. You are attempting to use

Replace with regular expression

2003-11-13 Thread Ricardo Pichler
Hi... I need replace in my string the characters in upperCase for the same but preceding the simbol +. Ex.: $myName="RicardoPichler"; s/.../.../g; # to do this return "+Ricardo+Pichler"; but like this: $myName=~s/[A-Z]/\+[A-Z]/g; but this don´t work. Can anyone help-me? Thanks in advance! Regar