REFind

Uses a regular expression (RE) to search a string for a pattern. The search is case sensitive.

Returns: any

Usage

REFind( reg_expression, string [, start [, returnsubexpressions ] ] )

Arguments

Argument Description Default
reg_expression
(string, required)

Regular expression for which to search. Case sensitive.

string
(string, required)

String in which to search.

start
(number, optional)

A positive integer. Position in the string at which to start search. The default value is 1.

1

returnsubexpressions
(boolean, optional)

If true returns result as a struct with keys pos and len. Each are an array with elements for the position and length of the match (first element), and the position and length of any matched subexpressions in the subsequent elements.

Examples

There are currently no examples for this function.

See also