RE: regex grrr

2006-03-07 Thread Timothy Johnson
>From 'perldoc perlop': "The following escape sequences are available in constructs that interpolate but not in transliterations. \l lowercase next char \u uppercase next char \L lowercase till \E \U uppercase till \E \E end

Re: regex grrr

2006-03-07 Thread Tom Phoenix
On 3/7/06, Tom Allison <[EMAIL PROTECTED]> wrote: > $one = 'this (is a) 1/2 measure example'; > > Try and run that through a regex like > > if ( $two =~ /$one/ ) { I think you're looking for the quotemeta() operator, and its cousin the \Q escape. See perlfunc. Hope this helps! --Tom Phoenix Ston