Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Matches a list against a pattern.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
List | 4.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
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 | 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. | 1 | Optional |
Returns list or error.
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)
Created 2nd November 2014, last changed 29th June 2015
Feedback: Report problem or ask question.