Skip to content
RegEx usage for Business Central development

Your daily Business with RegEx as a Developer

Daniel Gorski
Daniel Gorski June 23, 2021
1 min read

We use Regular Expressions every single day!

You can easily search and replace anything you want. Like adding an additional parameter to the transferfields-method in your application, which will take care moving data from Business Central 14 to Business Central 18.

Search for this:

.Transferfields\((.*)\);

and replace by this:

.TransferFields($1,false);

VS Code replace-preview diff for TransferData.Codeunit.al showing the false parameter added to the TransferFields calls on the right

Happy Coding!

Related posts

▸ All posts
Set up a custom BC25 repository

BC25 Base App Repo: Find All References in AL

September 19, 2024 · Daniel Gorski

Build your own BC25 repository from the base app, platform packages and assemblies so Find All References works across Microsoft's code in VS Code.

Read More
Read More: Increase Your DEV productivity with your own BC25 REPO
Split multiline comments in Business Central

Split Multiline Text into Records

June 28, 2022 · Daniel Gorski

Learn how to split long multiline text into comment records in Business Central using AL and Regex — including a working editor example and useful patterns.

Read More
Read More: Split Multiline Text into Records
Customizable cues in Business Central Role Center

Unlimited Cues in your RoleCenter

February 25, 2023 · Daniel Gorski

BEYOND Cues adds configurable tiles to your Business Central Role Center that show key figures and open filtered pages – per user or user group.

Read More
Read More: Unlimited Cues in your RoleCenter