I was refactoring the method, which accepted single argument. Initially it was integer, but the client wanted to add some string characters and leading zeros. After refactoring, I had to replace all the method calls in the app from:
someMethod(00123DHL)
to
someMethod("00123DHL")
In order to do it painlessly, you can facilitate RubyMine regex search&replace:
seach: someMethod\((\w.*)\) replace: someMethod('$1')
In the regex above, \w stands for any word character repeated multiple times .*, the backets designate that the string matching this condition should be returned as $1 ($0 is the whole expression matching the search regex).
This is pretty straightforward, but I decided to keep it as a blog post for future reference.