hello, I use many times some regex with \K
Look at this code (tested in notepad++ and sublime_text)
(?-s)(?:.*\R){3}\K.*(?s)(.*) (This will select everything after line 3). Of course, I can change \R with \r . But what about \K ?
Look at this print screen. https://snag.gy/ugTFIB.jpg
Unrecognized escape sequence \K
- DigitalVolcano
- Site Admin
- Posts: 1863
- Joined: Thu Jun 09, 2011 10:04 am
Re: Unrecognized escape sequence \K
\K isn't currently supported in .NET Regular expressions.
Check out the list of supported commands here:
https://msdn.microsoft.com/en-us/librar ... .110).aspx
Check out the list of supported commands here:
https://msdn.microsoft.com/en-us/librar ... .110).aspx
- DigitalVolcano
- Site Admin
- Posts: 1863
- Joined: Thu Jun 09, 2011 10:04 am
Re: Unrecognized escape sequence \K
\k (lowercase) is supported, but not \K (uppercase)
Re: Unrecognized escape sequence \K
Is there a workaround to using uppercase \K ??