Re: find and replace string

2003-06-13 Thread Paul Johnson
On Fri, Jun 13, 2003 at 10:03:40PM +0100, Rob Dixon wrote: > > basically i wanto get result 13 in $str. > > > > how to do this? > > It depends on what '13' looks like in general in the strings > you're processing. If it's always the first non-space thing > after the start of the line then > >

Re: find and replace string

2003-06-13 Thread Rob Dixon
Hi Madhu. You have two different questions here! Madhu Reddy wrote: > Hi, >I want to find and replace string with particular > pattern > > > my $str = " 13 A.MFDF_FEEDER_ET"; > $str =~ s/\s+//g; > > here i want to replace string th

Re: find and replace string

2003-06-13 Thread James Edward Gray II
On Friday, June 13, 2003, at 03:08 PM, Madhu Reddy wrote: Hi, Howdy. I want to find and replace string with particular pattern my $str = " 13 A.MFDF_FEEDER_ET"; $str =~ s/\s+//g; here i want to replace string that end with "_ET" with null basically i

find and replace string

2003-06-13 Thread Madhu Reddy
Hi, I want to find and replace string with particular pattern my $str = " 13 A.MFDF_FEEDER_ET"; $str =~ s/\s+//g; here i want to replace string that end with "_ET" with null basically i wanto get result 13 in $str. how to do this? I really appreci