Help Center

CRegExp.FindExmethod

Global, multiline find function with VBScript regular expressions search patterns.

WindowsmethodCRegExp.incdocumented

Syntax

FUNCTION FindEx (BYREF wszSourceString AS CONST WSTRING) AS DWSTRING

Parameters

NameDescription
wszSourceStringThe string to be parsed.

Return value

Returns a list of comma separated "index, length" value pairs. The pairs are separated by a semicolon.

Description

Global, multiline find function with VBScript regular expressions search patterns.

Example

DIM pRegExp AS CRegExp DIM dwsText AS DWSTRING = "blah blah a234 blah blah x345 blah blah" pRegExp.Pattern = "[a-z][0-9][0-9][0-9]" DIM dwsOut AS DWSTRING = pRegExp.FindEx(dwsText) PRINT dwsOut ' Output: 11,4;26,4

Reference

  • Include file CRegExp.inc
  • Defined in AfxNova/CRegExp.inc:481
  • Documented in Windows/Windows Script/CRegExp Class.md
  • Topic: CRegExp Class