Establish regular expression

xiaoxiao2021-03-06  40

The method of constructing a regular expression and a method of creating a mathematical expression. That is, using a variety of metamorphic characters to create a larger expression together with the operator.

A regular expression can be constructed by placing various components of the expression mode between a pair of separators. For JScript, the separator is a pair of forward slash (/) characters. E.g:

/ Expression /

For VBScript, a pair of quotes ("") are used to determine the boundary of the regular expression. E.g:

Expression

In the two examples shown above, the regular expression mode is stored in the Pattern property of the Regexp object.

Regular expressions can be a single character, a character set, a character range, a selection between characters or any combination of all of these components.

转载请注明原文地址:https://www.9cbs.com/read-54103.html

New Post(0)