OScript API/Built-in Package Index

Class: Regex

The Regex package provides regex search functionality. The major functionalities offered in the Regex Package are the following:

Class Methods

Match( String value )

Returns TRUE if the value specified matches the pattern for this regex

SetPattern( String pattern )

Sets the pattern string to use for matching

Class Methods

Match

Boolean Match( String value )

Evaluates value against the regular expression specified in the SetPattern() function.

Parameters

value

String to be evaluated

Returns:

TRUE if a match is found, FALSE otherwise.

SetPattern

void SetPattern( String pattern )

Sets the pattern to be used for matches for this regex instance. Note: this regex only supports POSIX character classes.

Parameters

pattern

String containing the regex pattern

Returns:

Nothing

 Copyright © 2021 OpenText Corporation. All rights reserved.