Proposed tag: question.
I want to make all class {Name}Test to be internal class {Name}Test, so I try to run:
ruplacer 'class (\w+)Test' 'internal class $1Test'
But it doesn't work as expected. I avoided it with
ruplacer 'class (\w+)(Test)' 'internal class $1$2'
But how can solve my issue without adding second capturing group?