Page 1 of 1

Unrecognized escape sequence \K

Posted: Tue Feb 07, 2017 3:08 pm
by me_suzy
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

Re: Unrecognized escape sequence \K

Posted: Wed Feb 08, 2017 9:55 am
by DigitalVolcano
\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

Re: Unrecognized escape sequence \K

Posted: Mon Dec 02, 2019 9:52 pm
by me_suzy

Re: Unrecognized escape sequence \K

Posted: Tue Dec 03, 2019 11:07 am
by DigitalVolcano
\k (lowercase) is supported, but not \K (uppercase)

Re: Unrecognized escape sequence \K

Posted: Tue Dec 03, 2019 3:48 pm
by 4EverMaAT
DigitalVolcano wrote: Tue Dec 03, 2019 11:07 am \k (lowercase) is supported, but not \K (uppercase)
Is there a workaround to using uppercase \K ??