VBS tutorial: introduction to regular expressions – common characters


Ordinary character

Normal characters consist of all printed and non printed characters that are not explicitly specified as metacharacters. This includes all uppercase and lowercase alphabetic characters, all numbers, all punctuation, and some symbols.

The simplest regular expression is a single ordinary character that matches the character itself in the search string. For example, the single character pattern ‘a’ can match the letter ‘a’ anywhere in the search string. Here are some examples of single character regular expression patterns:


The equivalent VBScript single character regular expression is:


You can combine multiple single characters to get a larger expression. For example, the following visual basic Scripting Edition regular expression is nothing else, or an expression created by combining single character expressions’ a ‘,’ 7 ‘and’m’.


The equivalent VBScript expression is:


Note that there is no join operator here. All you need to do is put one character after another.

Recommended Today

redis jedis application

package com.xzit.test; import lombok.extern.slf4j.Slf4j; import redis.clients.jedis.Jedis; import java.util.List; import java.util.Set; //1. Use jedis to complete the New Year's Day annual meeting lottery system (refer to the second day's case) @Slf4j(topic = “c.Reward”) public class Reward { public static void main(String[] args) { Jedis jedis = new Jedis(“″,6379); //s_add(jedis,”cj001”, “user:1001”, “user:1002”, “user:1003”, “user:1004″); s_pop(jedis,”cj001”,1); } public […]