Name
RegExp.Pattern Property
Data Subtype
String
Description
Contains a pattern string that defines the substring to be found in a search string.
Rules at a Glance
The following table defines the meaning of the individual characters that can be included in the pattern string. The table in the “Programming Tips & Gotchas” section lists a pattern string using each symbol and shows the results returned by the Execute method.
|
Symbol |
Description |
|---|---|
|
|
Marks the next character as either a special character (such as
\f: form feed character \n: newline character \r: carriage return character \t: tab character \v: vertical tab character |
|
|
Matches the beginning of input. |
|
|
Matches the end of input. |
|
|
Matches the preceding character zero or more times. |
|
|
Matches the preceding character one or more times. |
|
|
Matches the preceding character zero or one time. |
|
|
Matches any single character except a newline character. |
|
|
Defines a subexpression within the larger subexpression. A subexpression:
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access