Get the App
SLTechnology News&Howtos  ›  Development  › 

Special character description of VBS regular expression

Shulou Source: shulou.com Published: 2022-06-03 19:53:44 10月04日 Update

This article focuses on "Special character description of VBS regular expressions". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the special character description of VBS regular expressions.

Special character

There are many metacharacters that require special handling when trying to match them. To match these special characters, you must first escape them, that is, with a backslash (\) before them. The following table shows these special characters and their meanings:

The special character indicates that $matches the end of the input string. If the Multiline property of the RegExp object is set, $also matches'\ n'or'\ r'. To match the $character itself, use\ $. () marks the start and end positions of a subexpression. Subexpressions can be obtained for later use. To match these characters, use\ (and\). * matches the previous subexpression zero or more times. To match the * character, use\ *. + matches the previous subexpression one or more times. To match the + character, use\ +. . Matches any single character except the newline character\ n. To match., use\. [marks the beginning of a bracketed expression. To match [, use\ [. ? Matches the previous subexpression zero or once, or indicates a non-greedy qualifier. To play Standard PvP match? Characters, please use\? \ Mark the next character as either a special character, a literal character, a backward reference, or an octal escape character. For example,'n' matches the character'n'. \ n' matches the newline character. The sequence'\ 'matches "\", while'\ ('matches "(". ^ matches the start position of the input string unless used in a square bracket expression, where it indicates that the character collection is not accepted. To match the ^ character itself, use\ ^. {Mark the beginning of the qualifier expression. To match {, use\ {. | indicates a choice between the two items. To match |, use\ |. At this point, I believe that you have a deeper understanding of the "special character description of VBS regular expressions". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Characters expressions special tags regular position content strings line breaks escape learning input practical deeper greedy size between that is metacharacters octal Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Linux Docker macOS Shulou Tech Info