in reply to Re: Using 'lc' (lowercase) in a reg ex
in thread Using 'lc' (lowercase) in a reg ex
Unless you happen to have a function called emph, that's not going to work. If you want to use /e, write it as:$newfile =~ s/\b([A-Z]{2,})\b/\\emph{lc($1)}/ge;
$newfile =~ s/\b([A-Z]{2,})\b/'\emph{' . lc ($1) . '}'/eg;
But I would go for the \L method.
Abigail
|
|---|