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 4123212
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:34:57+00:00 2026-05-20T23:34:57+00:00

What is the complete list of characters matched by the escape sequence \s in

  • 0

What is the complete list of characters matched by the escape sequence \s in PHP ?
Some regex flavors include vertical space and other characters in this escape sequence.

  • 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-05-20T23:34:58+00:00Added an answer on May 20, 2026 at 11:34 pm

    From pcrepattern specifications page:

    Generic character types

    \s     any white space character
    

    For compatibility with Perl, \s did not used to match the VT character
    (code 11), which made it different from the the POSIX “space” class.
    However, Perl added VT at release 5.18, and PCRE followed suit at
    release 8.34. The default \s characters are now HT (9), LF (10), VT
    (11), FF (12), CR (13), and space (32), which are defined as white
    space in the “C” locale. This list may vary if locale-specific
    matching is taking place. For example, in some locales the
    “non-breaking space” character (\xA0) is recognized as white space,
    and in others the VT character is not.

    So \s will match 5 characters plus more depending on:

    1. PCRE library version
    2. Locale setting

    This test compares the result of preg_match across various versions of PHP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a complete list of security guidelines for programming and deploying PHP
Is there complete list of SOAP libraries for PHP? I am looking for complete
Is there a complete list of allowed characters somewhere, or a rule that determines
Does anybody know what the complete list of special characters in sed are ?
In PHP, what's the most elegant way to get the complete list (array of
Could someone please give a complete list of special characters that should be escaped?
anyone know of a complete list of the differences in Microsofts implementation of STL
Where is a complete list of the special double-underscore/dunder methods that can be used
To show the complete list of available colors, one has to click the color
Is there a complete list of the objects you can tap into with <%$

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.