RegEx note-match but not get

Source: Internet
Author: User

(?! = Xxx [: | \ s]?) \ D {16}
(?! = Xxx) indicates to search for XXX content, but the final result does not include it
(? = Xxx) indicates searching for XXX content. The final result includes
[: | \ S]? Full-width colon, half-width colon, space or no character

(Pattern) matches pattern and obtains this match. The obtained matching can be obtained from
Obtain the matches set and use the submatches set in VBScript.
$0… is used in Visual Basic Scripting Edition... $9 attribute. Yes
Use '\ (' or '\)' to match the parentheses '\)'.

(? : Pattern) matches pattern but does not get the matching result, that is, this is a non-retrieved
Configuration, not stored for future use. This is a combination of "or" characters (| ).
Each part of a mode is very useful. For example, 'industr (? : Y | ies ).
Is a simpler expression than 'industry | industries.
(? = Pattern) Forward pre-query, matching the search character at the beginning of any string that matches pattern
String. This is a non-get match, that is, the match does not need to be obtained for later
. For example, 'windows (? = 95 | 98 | nt | 2000) 'can match "Windows
"Windows" in 2000 ", but cannot match" Windows "in" windows3. 1 ".
Pre-query does not consume characters, that is, after a match occurs
Start the next matching search immediately after configuration, instead of starting from the character that contains the pre-Query
.
<! --
The above two ,(? : Pattern) (pattern)
It seems to be (?! = Pattern ).
-->


(?! Pattern) negative pre-query, in any does not match negative lookahead matches
Search string at any point where a string not matching
Match the string at the beginning of the pattern. This is a non-retrieved horse
Configuration, that is, the matching does not need to be obtained for future use. For example, 'windows
(?! 95 | 98 | nt | 2000) 'can match "Windows" in "Windows 3.1 ",
But cannot match "Windows" in "Windows 2000 ". Pre-query does not consume words
In other words, after a match occurs, it is enabled immediately after the last match.
Starts the next matched search, instead of starting after the pre-query characters.

RegEx note-match but not get

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.