string.REMatchNoCase()
Uses a regular expression (RE) to search a string for a pattern, starting from a specified position.
string.REMatchNoCase( reg_expression=string, multiline=boolean )
Returns: Array
| Argument | Description |
|---|---|
|
reg_expression
string,
required
|
edit
Regular expression for which to search. Case-insensitive. Alias: regex |
|
multiline
boolean,
optional
|
edit
If true indicate the regular expression should treat input as having multiple lines. This option affects the interpretation of the ^ and $ metacharacters. When true the ^ metacharacter matches at the beginning of every line, and the $ metacharacter matches at the end of every line. Additionally the . metacharacter will not match newlines when true. |
Examples
editstr = "count 1234 or one,two,three,four.."
res = str.rematchnocase("[A-Z]+");
writeDump(res);
res = str.rematchnocase("[a-z]+");
writeDump(res);
res = str.rematchnocase("(0-4)");
writeDump(res);
res = str.rematchnocase("[0-4]*");
writeDump(res);
res = str.rematchnocase("[0-9]+");
writeDump(res);