Re: Insert Var in Regex Problem

2002-07-10 Thread John W. Krahn
Connie Chan wrote: > > > > From: Connie Chan [mailto:[EMAIL PROTECTED]] > > > > > > Say, I have an input $x = "ABCDEF"; > > > and I will try to remove $x from a string, > > > what can I do ? > > > > > > Is there something like : > > > > > > $x =~ s/$x//g; > > Sorry everybody I've make a mist

Re: Insert Var in Regex Problem

2002-07-10 Thread Connie Chan
ednesday, July 10, 2002 3:06 PM > > To: [EMAIL PROTECTED] > > Subject: Insert Var in Regex Problem > > > > > > Hi all, > > > > Say, I have an input $x = "ABCDEF"; > > and I will try to remove $x from a string, > >

Re: Insert Var in Regex Problem

2002-07-10 Thread George Schlossnagle
t; > > > >> -Original Message- >> From: Connie Chan [mailto:[EMAIL PROTECTED]] >> Sent: Wednesday, July 10, 2002 3:06 PM >> To: [EMAIL PROTECTED] >> Subject: Insert Var in Regex Problem >> >> >> Hi all, >> >> Say, I have

Re: Insert Var in Regex Problem

2002-07-10 Thread Connie Chan
ally, logic error, my sample seem the var kills itself) Please help anyway. =) Rgds, Connie > -Original Message- > From: Connie Chan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 10, 2002 3:06 PM > To: [EMAIL PROTECTED] > Subject: Insert Var in Regex Problem > &g

Re: Insert Var in Regex Problem

2002-07-10 Thread Felix Geerinckx
on Wed, 10 Jul 2002 22:05:58 GMT, Connie Chan wrote: > Say, I have an input $x = "ABCDEF"; > and I will try to remove $x from a string, > what can I do ? > > Is there something like : > > $x =~ s/$x//g; That's just a complicated way to say $x = ''; But this works: #! perl -w u

RE: Insert Var in Regex Problem

2002-07-10 Thread Timothy Johnson
It sounds like you want something more like: $string = "ABCDEFGHIJKLMNOP"; $x = "ABCDEF"; $string =~ s/$x//g; Or am I misunderstanding? -Original Message- From: Connie Chan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 3:06 PM To: [EMAIL PROTECTED] Su

Insert Var in Regex Problem

2002-07-10 Thread Connie Chan
Hi all, Say, I have an input $x = "ABCDEF"; and I will try to remove $x from a string, what can I do ? Is there something like : $x =~ s/$x//g; Rgds, Connie