问题
Is there a way to do a find and replace (regex) all uppercase characters in the matching strings with lowercase ones? Preferably in VS Code or IntelliJ I already have my regex ready.
Edit: To be cleare I already know who to find the matches. But looking for that function to replace all uppercase matches with lowercase ones
回答1:
- Press Ctrl + F
- Select
.*
and enter your RegEx - Press Ctrl + Shift + L (Select All)
- Press Ctrl + Shift + P
- Choose
Transform to Lowercase
回答2:
Open the find & replace blade. (Ctrl. + F on windows)
On the blade look for an icon .*
Clicking the icon will configure the box to accept regex code.
You can then enter it from there.
EDIT: to replace all click the downer arrow & select Replaceall
来源:https://stackoverflow.com/questions/59785124/vs-code-regex-find-and-replace-with-lowercase