Re: [Tutor] Regular expression questions

2007-05-03 Thread Bernard Lebel
Thanks a lot Kent, that indeed solves the issues altogether. Cheers Bernard On 5/3/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > Bernard Lebel wrote: > > Hello, > > > > Once again struggling with regular expressions. > > > > I have a string that look like "something_shp1". > > I want to repla

Re: [Tutor] Regular expression questions

2007-05-03 Thread Kent Johnson
Bernard Lebel wrote: > Hello, > > Once again struggling with regular expressions. > > I have a string that look like "something_shp1". > I want to replace "_shp1" by "_shp". I'm never sure if it's going to > be 1, if there's going to be a number after "_shp". > > So I'm trying to use regular exp

[Tutor] Regular expression questions

2007-05-03 Thread Bernard Lebel
Hello, Once again struggling with regular expressions. I have a string that look like "something_shp1". I want to replace "_shp1" by "_shp". I'm never sure if it's going to be 1, if there's going to be a number after "_shp". So I'm trying to use regular expression to perform this replacement. Bu