Entering edit mode
2.6 years ago
vpsev3
▴
20
Hello,
I would like to invert my regex match
Example:
sssd;RS=93298723;f
My current regex :
RS=\d*
This regex would match RS=93298723
, I would want to invert the match, see demo here https://regex101.com/r/PGkwA5/1
Thank you.
for which tool ? what is "invert" a regex result ?
RS=A
would "invert" the result..I edited my question
I'm trying to invert my regex match, for example, I would like to match everything except RS=93298723 (the digits could change)
This is because I'm creating a CSV file with variants to compare them, I will create my own tool in python
aren't you looking for
grep -v -f patterns.txt
?I'm on EmEditor, I try to select everything except RS=(numbers)
I have this regex101.com/r/PGkwA5/1
But I would like to do the opposite
In Python, you can try this
(?!RS=\d+)
This is a negative lookahead assertion.
I would need to do this on Emeditor or another text editor
I found !
edit: well, it finally doesn't works
does anyone have a solution?
I'm still stuck
Please only add an answer to the post if it's a solution to the question. Otherwise you can add it as a comment.
It doesn't works
in Notepad++, try
^((?!RS=93298723).)*$
. please post example data. Post is not clear with current example data.