There are some rare regex engines that support conditional replacement patterns, like Boost and PCRE2. In this video, I will explain how you can replace 3 values with some other 3 substrings using a popular text editor, Notepad++ that uses Boost regex engine under the hood.
FURTHER LINKS:
1. How to use conditionals when replacing in Notepad++:
- https://stackoverflow.com/a/37161309/3832970
2. The Boost-Specific Format Sequences:
- https://www.boost.org/doc/libs/1_61_0/libs/xpressive/doc/html/boost_xpressive/user_s_guide/string_substitutions.html#boost_xpressive.user_s_guide.string_substitutions.the_boost_specific_format_sequences
3. PCRE2 conditional replacement pattern:
- https://stackoverflow.com/a/46874038/3832970
4. PCRE2 replace documentation:
- https://www.pcre.org/current/doc/html/pcre2api.html#SEC36
Download
0 formats
No download links available.
Swapping multiple values using conditional replacement patterns in Notepad++ | NatokHD