VBRegExp_Execute

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > VBRegExp >

VBRegExp_Execute

 

Description

 

Executes a regular expression search against a specified string.

 

Syntax

 

pMatchCollection = VBRegExp_Execute(pReg, sourceString)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

pReg

Numeric

No

Regular expression handle created with VBRegExp_New function

sourceString

String

No

The text string upon which the regular expression is executed

 

Remarks

 

The actual pattern for the regular expression search is set using VBRegExp_SetPattern function.

 

VBRegExp_Execute returns a Matches collection containing a Match object for each match found in string.

VBRegExp_Execute returns an empty Matches collection if no match is found.

 

Restrictions

 

See also

 

Examples