![]() |
|
go ahead... be a heretic | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
I assume by 'brackets' you mean parentheses? That is, '(' and ')'?
Try using \Q ... \E in your regular expression if you want to 'escape' the string being searched against:
You can find more by reading perlre. And another option is to use the qr/\Q$search\E/ syntax, which you can find in perlop. Update: Fixed wording (thanks for pointing that out, Hofmator++.) Good luck! s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/ In reply to Re: Regex: Searching for a string with special characters
by liverpole
|
|