RegExp Object
Regular Expressions Is a sequence of characters that forms a pattern, which is mainly used for search and replace. The purpose of creating a pattern is to match specific strings, so we can extract characters based on conditions and replace certain characters.
The following code illustrates how to create RegExp
object:
Object Name: VBScript.RegExp
Dim regExpObj ' Create a variable.
Set regExpObj = CreateObject("VBScript.RegExp")