Re: Search and Replace question

2003-12-11 Thread david
Saju Palayur wrote: > Hi > > I am trying to do some thing like this, but am getting the wrong output. > Can somebody tell if my regular expression is wrong or not? > > -Perl script--- > $line = "ABCXYZGwcTI\\ABCXYZIntValTI"; > > $line=~s/ABCXYZ(.*)TI/

RE: Search and Replace question

2003-12-11 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Saju Palayur wrote: > Hi > > I am trying to do some thing like this, but am getting the wrong > output. Can somebody tell if my regular expression is wrong or not? > > -Perl script--- > $line = "ABCXYZGwcTI\\ABCXYZIntValTI"; > > $line=~s/ABCXYZ(.*)TI/H

Search and Replace question

2003-12-11 Thread Saju Palayur
Hi I am trying to do some thing like this, but am getting the wrong output. Can somebody tell if my regular expression is wrong or not? -Perl script--- $line = "ABCXYZGwcTI\\ABCXYZIntValTI"; $line=~s/ABCXYZ(.*)TI/Hello$1/g; print $line; -Output