in reply to Re: Capitalization and Regex
in thread Capitalization and Regex

$_[0]=~s/([a-zA-Z])/[$1]/gi;

Of course with the /i modifier, [a-zA-Z] becomes redundant, and so, can be expressed as simply [a-z], assuming we're dealing with ASCII.


Dave


"If I had my life to live over again, I'd be a plumber." -- Albert Einstein