Urmil Shah wrote: > > From: John W. Krahn [mailto:[EMAIL PROTECTED]] > > Urmil Shah wrote: > > > > $str =~s/\s+\bTreal\b\;(\d+\w+)\;/Treal;/g > > > > but not working..any idea > > This might work (not tested): > > $str =~ s/(?<= := Treal;) [+-]?\d+mV;//g > > Yes i tried but not working it gives error for (?<= sequence not found, > when i remove the ?<= it does nothing..
You must have an old version of Perl. :-) Again, untested: $str =~ s/( := Treal;) [+-]?\d+mV;/$1/g John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]