Re: regex and pattern matching

2002-02-06 Thread Brett W. McCoy
> > >Problem is I don't know how to escape the entire variable $value_a so that > > >the . is not considered a quantifier. > > > > You have $value_a and $value_b in the wrong place in your example. > > > Speaking of $a and $b, I seem to recall that both of those are special > variables in that the

Re: regex and pattern matching

2002-02-06 Thread Dave Benware
Jeff 'japhy' Pinyan wrote: > > On Feb 5, [EMAIL PROTECTED] said: > > >Problem is I don't know how to escape the entire variable $value_a so that > >the . is not considered a quantifier. > > You have $value_a and $value_b in the wrong place in your example. Speaking of $a and $b, I seem to rec

Re: regex and pattern matching

2002-02-05 Thread Jeff 'japhy' Pinyan
On Feb 5, [EMAIL PROTECTED] said: >Problem is I don't know how to escape the entire variable $value_a so that >the . is not considered a quantifier. You have $value_a and $value_b in the wrong place in your example. Use \Q...\E around $value_b. if ($value_b =~ /\Q$value_a\E/) { print "tr

regex and pattern matching

2002-02-05 Thread PaulD
Hi All, Trying to figure out something that should be easy.. If $value_a contains $value_b then Problem is I don't know how to escape the entire variable $value_a so that the . is not considered a quantifier. $value_a = ".com";