Skip to content

Replacing with the latest version using refex #734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Osanosa opened this issue Apr 20, 2025 · 0 comments
Open

Replacing with the latest version using refex #734

Osanosa opened this issue Apr 20, 2025 · 0 comments

Comments

@Osanosa
Copy link

Osanosa commented Apr 20, 2025

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

Hope this will be useful to someone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant