Lucee Function Reference

rematch()

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

Beispiel

rematch(string regex,string string,[boolean multiline]):array

Kategorie

string,regex

Argumente

Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name Typ Required Default Value Beschreibung
regex string  Yes   Regular expression for which to search. Case sensitive.  
string string  Yes   String in which to search.  
multiline boolean  No false 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.