in reply to backslash in regex
It will match the stuff you want...if ( $dir =~ /^\Q$fav\E\\/ ) { # Note the \E after $fav!
Update: placed the \E at the wrong place...
-- JaWi
"A chicken is an egg's way of producing more eggs."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: backslash in regex
by Pardus (Pilgrim) on Feb 02, 2003 at 11:00 UTC | |
|
Re: Re: backslash in regex
by arc_of_descent (Hermit) on Feb 02, 2003 at 11:01 UTC |