Re: Maybe Stupid RegEx Question

2004-02-13 Thread Alan Perry
Bastian Angerstein wrote: Hi I have two strings 0x1479ee und 0x1479fe. The strings a in $var1 and $var2. if I do: if ( $var2 =~ /\Q$var1\E/) It matches. how can I match an the string and not on each sign? As someone else pointed out, I am surprised that you got a match... Just out of

Re: Maybe Stupid RegEx Question

2004-02-12 Thread James Edward Gray II
On Feb 12, 2004, at 7:34 AM, Bastian Angerstein wrote: Hi Hello. I have two strings 0x1479ee und 0x1479fe. The strings a in $var1 and $var2. if I do: if ( $var2 =~ /\Q$var1\E/) It matches. You sure about that? #!/usr/bin/perl my($var1, $var2) = ("0x1479ee", "0x1479fe"); if ($var2 =~ /\Q$v

Maybe Stupid RegEx Question

2004-02-12 Thread Bastian Angerstein
Hi I have two strings 0x1479ee und 0x1479fe. The strings a in $var1 and $var2. if I do: if ( $var2 =~ /\Q$var1\E/) It matches. how can I match an the string and not on each sign? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]