gino_m
January 30, 2024, 11:20pm
6
You can use VS Code, Sublime Text, Notepad++ text editors to search and replace with regex match on.
Are you familiar with one of these?
Some tutorial in Notepad++:
If you want to create YAML, you will need to copy the lines from both the Regular Expression and Substitution boxes on the Regex101 site to a text editor.
If you haven’t done this before and have no preference for VSCode or Sublime Text, dowload and install Notepad++, if you are on Windows. If you are on Mac, probably you’ll need to download either of the other two programs and install it.
Then when you copy the lines, you can try on a single file, after ticking on Regex.
You can also modify …
The match and replacements are easy enough. See:
Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.
Edit: gave you a more stringent one.