Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8884397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:03:09+00:00 2026-06-14T21:03:09+00:00

The \K escape sequence resets the beginning of the match to the current position

  • 0

The \K escape sequence resets the beginning of the match to the current position in
the token list (this only affects what is reported as the full match).

What environments/languages/versions support \K (keep) in its regular expression engines and what libraries are needed (if any) to use this feature within patterns?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:03:10+00:00Added an answer on June 14, 2026 at 9:03 pm

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

    • boost (since ???)
    • grep -P ——————–⇢ Uses PCRE
    • Oniguruma (since 5.13.3)
    • PCRE (since 7.2)
    • Perl (since 5.10.0)
    • PHP (since 5.2.4)
    • Ruby (since 2.0.0 due to its use of the Onigmo engine (a fork of Oniguruma))
    • Notepad++ (since 6.0)

    …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
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting an invalid escape sequence error for this string. How can I escape
I knew that I could get unicode characters using the escape sequence, like this:
What is the complete list of characters matched by the escape sequence \s in
Does anyone know the escape sequence to use a \ in a list. List
This question is a general version of my previous question: Change the escape sequence
I need an escape sequence for - or the minus sign for php. The
Is there any equivalent of \x PHP escape sequence in c# ? see my
I'm looking for a way to create valid UTF-16 JavaScript escape sequence characters (including
We know some escape sequence '\n' - new line but say we don't know
std:string str(text1\; text2\;); How come VS2005 says ; unrecognized character escape sequence. Please advise,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.