Support of \K in regex

The \K escape sequence is supported by several engines, languages or tools, such as:

…and (so far) not supported by:

  • .NET
  • awk
  • bash
  • ICU
  • Java
  • Javascript
  • Objective-C
  • POSIX
  • Python
  • Qt/QRegExp
  • sed
  • Tcl
  • vim ——————–⇢ It doesn’t have \K, but its \zs is equivalent
  • XML
  • XPath

Leave a Comment