Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  


Matches a list against a pattern.

Component: List
Version: 4.4
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "List.RegExMatch"; List; Pattern; CompilerOptions; ExecuteOptions { ; NoReturnEnding } )


Parameter Description Example value
List The list of texts to search. "Hello"
Pattern The pattern to use. "H(.*)"
CompilerOptions A number for the options to use. e.g. 1 for case insensitive or 512 for ungreedy. 512+1
ExecuteOptions The options for executing. 0
NoReturnEnding Optional
Pass 1 to have no extra newline character on the end of the returned list. Default is 0 to include one to easily concat lists.


Returns list or error.


Matches a list against a pattern.
This compiles the pattern, executes it and looks if we have a match or not for each list item.
Returns the list items which match.


Match Hello with pattern:

MBS( "List.RegExMatch"; "Hello¶Test¶World¶House¶Test"; "H(.*)o")

same without return on end of result:

MBS( "List.RegExMatch"; "Hello¶Test¶World¶House¶Test"; "H(.*)o”; 0; 0; 1)

See also

List.Or   -   List.Remove

Feedback: Report problem or ask question.

MBS Real Studio Plugins - Christians Software aus Nickenich