string.REMatch()

Uses a regular expression (RE) to search a string for a pattern, starting from a specified position.

string.REMatch( regex=string )

Returns: Array

Argument Description
regex
string, required

Regular expression for which to search. Case sensitive.

Alias: reg_expression

Examples

str = "count 1234 or one,two,three,four.."
res = str.rematch("[a-z]+");
writeDump(res);
res = str.rematch("[a-z]");
writeDump(res);
res = str.rematch("[0-9]");
writeDump(res);
res = str.rematch("[0-9]+");
writeDump(res);

See also