JavaScript-Help to see the meaning of several regular expressions

Source: Internet
Author: User
Keywords javascript php
The following several regular expressions represent what each means, please expert advice

'/%0[0-8bcef]/''/%1[0-9a-f]/''/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]+/S'

Reply content:

The following several regular expressions represent what each means, please expert advice

'/%0[0-8bcef]/''/%1[0-9a-f]/''/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]+/S'

/%0[0-8bcef]/

The expression begins with the string "%0" followed by a character that is one of 0 to 8 digits or BCEF.
For example: "%00", "%06", "%0c" are consistent, and "%09" does not meet.

'/%1[0-9a-f]/'

and the previous similar

'/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]+/S'

The contents within the brackets represent any of the following characters: 0x00 to 0x08, 0x0B, 0x0C, 0x0e to 0x1f, 0x7F.
The "+" after [] indicates that the above characters can appear 1 or more times.
JavaScript seems to be able to set only G, I, M three identifiers, the last/s may be other languages, not very clear.

Recommend a website: https://regexper.com/
You can show your regular expressions in graphs.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.