You are missing the + after your char class to catch the [pageN] bit ie [^]]+ Without that if fails to match.....
s/(\\cite\[[^]]+\]\{)([A-Z])/ $1 . lc($2) /ge;
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: Changing case inside substitution
by tachyon
in thread Changing case inside substitution
by skillet-thief
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |