I have some files that contain the variable-literal "Pano(#)" somewhere in the filename, usually but not always, at the very end of the filename. The # is a variable length (1, 2 or 3) digit number. I want to change "Pano(#)" to "[Pano(#)]". In other words, I want to enclose Pano(##) within square brackets [ ].
Before:
xxxxxxx Pano(1) yyyyyy
xxxxxxx Pano(22)
xxxxxxx Pano(333)
After:
xxxxxxx [Pano(1)] yyyyyy
xxxxxxx [Pano(22)]
xxxxxxx [Pano(333)]
I tried . . .
RexEx 1 with "Simple" Enabled
then
Match: %1 Prefix Pano(%2)
Replace : %1 [Prefix Pano(%2)]
That worked great, EXCEPT everything following the inserted closing bracket ] is truncated.