VBS TUTORIAL: Introduction to Regular Expressions-common character _vbs

Source: Internet
Author: User

Ordinary characters

Normal characters are made up of all print and nonprinting characters that are not explicitly specified as metacharacters. This includes all uppercase and lowercase alphabetic characters, all numbers, all punctuation marks, and some symbols.

The simplest regular expression is a single ordinary character that matches the character itself in the searched string. For example, the single character pattern ' a ' can match the letter ' a ' that appears anywhere in the searched string. Here are some examples of word single-character patterns:

/a//7//M/

The equivalent VBScript word single-character expression is:

"a""7""M"

You can combine multiple single characters together to get a larger expression. For example, the following Visual Basic scripting Edition Regular expressions are not something else, that is, an expression created by combining single character expressions ' A ', ' 7 ', and ' M '.

/a7M/

The equivalent VBScript expression is:

"a7M"

Please note that there are no connection operators here. All you have to do is put one character behind another character.

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.