Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re (2) string substitution

by mandog (Curate)
on Oct 08, 2003 at 17:07 UTC ( [id://297663] : note . print w/replies, xml ) Need Help??

in reply to Re: string substitution
in thread string substitution

Greetings seaver

you might escape some of the chars in your char class.

For example, inside a char class '-' is a range operator. [a-e] instead of [abcde]

Also it is hard to tell the paren inside your char class from the first closing paren