RE: Regulare Expressions/ Substitution Question

2001-11-15 Thread Gibbs Tanton - tgibbs
x27; ' Sent: 11/15/2001 12:05 PM Subject: RE: Regulare Expressions/ Substitution Question > -Original Message- > From: Gibbs Tanton - tgibbs [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 12:08 PM > To: 'Miretsky, Anya '; ''[EMAIL PROTECTE

RE: Regulare Expressions/ Substitution Question

2001-11-15 Thread Bob Showalter
> -Original Message- > From: Miretsky, Anya [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 11:57 AM > To: 'Bob Showalter' > Subject: RE: Regulare Expressions/ Substitution Question > > > I don't understand why but if I write the sub

RE: Regulare Expressions/ Substitution Question

2001-11-15 Thread Bob Showalter
> -Original Message- > From: Gibbs Tanton - tgibbs [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 12:08 PM > To: 'Miretsky, Anya '; ''[EMAIL PROTECTED]' ' > Subject: RE: Regulare Expressions/ Substitution Question > >

RE: Regulare Expressions/ Substitution Question

2001-11-15 Thread Gibbs Tanton - tgibbs
What you want is a negative lookahead $iter =~ s/\b$varS(?!\.)/St./gi; That says to find any occurrence of $varS that is preceeded by a word boundry (so you don't replace things like worst) and is NOT followed by a . Tanton -Original Message- From: Miretsky, Anya To: '[EMAIL PROTECTED]

Re: Regulare Expressions/ Substitution Question

2001-11-15 Thread birgit kellner
--On Donnerstag, 15. November 2001 11:37 -0500 "Miretsky, Anya" <[EMAIL PROTECTED]> wrote: > I am trying to replace all occurences of the word St with St. without > generating St.. in the incorrect substitutions of St. > > The code I have been playing with is something like: > > $item = "35 Main

RE: Regulare Expressions/ Substitution Question

2001-11-15 Thread Bob Showalter
> -Original Message- > From: Miretsky, Anya [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 11:37 AM > To: '[EMAIL PROTECTED]' > Subject: Regulare Expressions/ Substitution Question > > > I am trying to replace all occurences of the word St with St. without > generating St