Re: Replacing string

2002-09-27 Thread Janek Schleicher
Zary Necheva wrote at Thu, 26 Sep 2002 21:36:35 +0200: > I have a file with this data: > > ..CITY/STATE. |aBalt., MD > ..COUNTY. |aBALTIMORE > ..CITY/STATE. |aBaltimore, Md > ..COUNTY. |aBALTIMORE > ..CITY/STATE. |aBaltimore, Maryland > ..COUNTY. |aBALTIMORE > ..CITY/STATE. |aBaltimore, M

Re: Replacing string

2002-09-27 Thread Sudarshan Raghavan
On Fri, 27 Sep 2002, Dharmender Rai wrote: > your regexp for aBalt (aBalt*) is not correct. It is > taking into account aBaltimore also. Instead , you > should have written "aBalt\.* " Your regex says the string 'aBalt' followed by 0 or more '.'. This should be 'aBalt.*' -- To unsubscribe, e-

Re: Replacing string

2002-09-27 Thread Sudarshan Raghavan
On Thu, 26 Sep 2002, Zary Necheva wrote: > Hi, > I have a file with this data: > > ..CITY/STATE. |aBalt., MD > ..COUNTY. |aBALTIMORE > ..CITY/STATE. |aBaltimore, Md > ..COUNTY. |aBALTIMORE > ..CITY/STATE. |aBaltimore, Maryland > ..COUNTY. |aBALTIMORE > ..CITY/STATE. |aBaltimore, MD > ..CO

Re: Replacing string

2002-09-27 Thread Dharmender Rai
your regexp for aBalt (aBalt*) is not correct. It is taking into account aBaltimore also. Instead , you should have written "aBalt\.* " --- Zary Necheva <[EMAIL PROTECTED]> wrote: > Hi, > I have a file with this data: > > ..CITY/STATE. |aBalt., MD > ..COUNTY. |aBALTIMORE > ..CITY/STATE. |aBal