J
John
Hi
I've reduced some text to upper and lower case.
Some names need uppercase within the word. Mcalpine would be McAlpine.
I need to use the uc function within the regex expression.
$x=~ s| Mc([A-Z]{1})| Mcuc($1) |g;
The above clearly does not work. How do you insert a function in such an
expression?
Regards
John
I've reduced some text to upper and lower case.
Some names need uppercase within the word. Mcalpine would be McAlpine.
I need to use the uc function within the regex expression.
$x=~ s| Mc([A-Z]{1})| Mcuc($1) |g;
The above clearly does not work. How do you insert a function in such an
expression?
Regards
John