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
Replaces patterns.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RegEx | 7.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Text | The text to use. | "hello world" | |
Pattern | The pattern to use. | "l+" | |
Rewrite | The output pattern. | "\1\1" | |
Options | The PCRE options. Can be given as text or number. |
0 | Optional |
Returns new text or error.
Replace all:
MBS( "RegEx.ReplaceAll"; "yabba dabba doo"; "b+"; "d" )
Example result: "yadda dadda doo"
Replace all greedy:
MBS( "RegEx.ReplaceAll"; "yabba dabba doo"; "b+"; "d"; "greedy" )
Example result: "yada dada doo"
Replace links with html:
MBS( "RegEx.ReplaceAll"; "This is a link to the Monkeybread Software site: http://www.mbsplugins.eu/ where Filemaker solutions can be found."; "(https?://[\w./]+)"; "<a href=\"\1\">\1</a>"; "caseless¶greedy" )
Example result: This is a link to the Monkeybread Software site: <a href="http://www.mbsplugins.eu/">http://www.mbsplugins.eu/</a> where Filemaker solutions can be found.
Replace all σ with ς in greek texts:
MBS( "RegEx.ReplaceAll"; "Ιωαννησ testσ testσ"; "([\p{Greek}\p{Latin}]+)σ(\W*)"; "\1ς\2" )
Created 17th October 2017, last changed 23th July 2018
Feedback: Report problem or ask question.