Replacing with the latest version using refex

#734 · open · 0 comments

View on GitHub ↗

Osanosa

So I did this to save some time `(?<=(?:version\s*=\s*"|^\S+\s*=\s*"))([^"]+)(".*?\n(?:##.*?⬆.*?=\s*"[^"]*".*?\n)*?##.*?⬆.*?=\s*")` And it matches new version one line at a time so it can be replaced without highlighting text manually and erasing it ![Image](https://github.com/user-attachments/assets/548a5a53-f777-4e26-8e21-6bd422b822cc) Hope this will be useful to someone!

Comments