This post is about the system app Regex. It provides a set of functions that are quite useful when working with text search and replace. If you have a pattern, validations for e-mail, url, phone no. etc. can be done with a single line of code. Four main methods offered by Regex app are IsMatch, Match, Replace and Split. These methods are available with different overloads.
Tag Archives: RegEx
This is (almost) the coolest use of AI I have yet to see (English to RegEx)
Here’s a quirky little example of an AI (GPT-3) based project, to help you with creating RegEx, check it out:
Split Multiline Text into Records (Regex)
Wouldn’t it be nice to copy and paste any text you like to save it directly into any table and it’s splitted automatically?
It’s annoying for users to split the lines on their own, right?
Multi-line text search in VSCode (with RegEx)
Small post – just because I needed it recently – and it made me think of this little gem that I still had to share: what if you have to search over multiple lines in multiple files in VSCode .. something that actually might happen more than you want to admit.
How-To USE Search-and-Replace Regex in VS Code
You might know that VS Code supports usage of search-and-replace regular expressions?
If you want to know how this reg-ex works, just visit: https://regex101.com/r/Rx7sPI/4
Introducing RegEx, now you have two problems!
With version 17 we got a proper RegEx module in business Central. In this video, I show a AL based RegEx workbench and explain the basics of RegEx.