There’s a 2 ways to make it, first one using the Find in Place window clicking “Replace” or “Replace All” (God bless I did it in the end when I had only 3 items left to change). Which will result in the next output
Find with Events.BoutiqueEvents.(\w+)\(\).
Replace with Events.BoutiqueEvents.\1
(I know that the correct version would be probably Events\.BoutiqueEvents\.(\w+)\(\) and Events\.BoutiqueEvents\.\1, I was just playing around.
P.S it’s really awful to work with “Replace” in Find in Place and “Replace Next” in Find in Script, because it just teleports you to the next value, not giving you a change to evaluate was the replacement correct or not. Which makes you go back and check each time was the replacement with regex correct or not. Which also makes you to use “Replace All” and then Ctrl + Z if something was wrong (really inconvenient).
Hi - thanks for the bug report. What you’ve found here is happening because we’re transitioning between regex libraries, and the new library has slightly different syntax for capture groups. Events.BoutiqueEvents.$1 should do what you expect. The in-editor Find hasn’t been updated to use the new library yet so it still uses the old syntax.
This isn’t quite a bug, because the change in syntax is intentional, but it’s definitely annoying that the syntax is currently inconsistent.
because it just teleports you to the next value, not giving you a change to evaluate was the replacement correct or not.
Thank you for this feedback - we can discuss adding a setting to keep the cursor at the current position when replacing.
@swmaniac thanks, keeping cursor on the current position would be great! If the button act like Replace, replacing the value, and then like Go to Next before going further sounds like a huge improvement!
Also, I’m not trying to say that your approach is incorrect or wrong, but implementing such things no one puts attention yet is a great thing to have. I’d love to hear what you think about it personally, have you ever used replace and noticed it?