Last active
December 6, 2022 11:22
-
-
Save sauloefo/79b0b12189f37f977f0cfa43cbaab9f4 to your computer and use it in GitHub Desktop.
REGEX to remove references from xml files based on the outter xml node and a value to match
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
\n\s*<flowAccesses>\n([\S ]*\n){1}[\S ]*Play_Changed<[\S ]*\n([\S ]*\n){0}[\S ]*</flowAccesses> | |
``` | |
{1} : number of lines *between* the outter open element and the line with the text to match; | |
< at the end of `Play_Changed<` : terminator to avoid matching text that starts with Play_Changed; | |
{0} : number of lines *between* the line with the text to match and the outter close element; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
classAccesses: