---
title: "Codeunit 3961 Regex Impl."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/3961-regex-impl/
type: codeunit
id: 3961
name: "Regex Impl."
app: "System Application"
namespace: System.Utilities
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/3961-regex-impl/source/24/ https://jonas-paprotka.de/ref/codeunit/3961-regex-impl/source/25/ https://jonas-paprotka.de/ref/codeunit/3961-regex-impl/source/26/ https://jonas-paprotka.de/ref/codeunit/3961-regex-impl/source/27/ https://jonas-paprotka.de/ref/codeunit/3961-regex-impl/source/28/ https://jonas-paprotka.de/ref/codeunit/3961-regex-impl/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 3961 Regex Impl.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/3961-regex-impl/

| | |
| --- | --- |
| App | System Application |
| Namespace | System.Utilities |
| Versions | 17-28 |
| Source file | Regex/src/RegexImpl.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetCacheSize | () | Integer | public | 17-28 | - | - |
| SetCacheSize | (Integer) | - | public | 17-28 | - | - |
| GetGroupNames | (var List) | - | public | 17-28 | - | - |
| GetGroupNumbers | (var List) | - | public | 17-28 | - | - |
| GroupNameFromNumber | (Integer) | Text | public | 17-28 | - | - |
| GroupNumberFromName | (Text) | Integer | public | 17-28 | - | - |
| IsMatch | (Text, Text, Integer) | Boolean | public | 17-28 | - | - |
| IsMatch | (Text, Text, Integer, var Record Regex Options) | Boolean | public | 17-28 | - | - |
| IsMatch | (Text, Text) | Boolean | public | 17-28 | - | - |
| IsMatch | (Text, Text, var Record Regex Options) | Boolean | public | 17-28 | - | - |
| Match | (Text, Text, Integer, var Record Matches) | - | public | 17-28 | - | - |
| Match | (Text, Text, Integer, var Record Regex Options, var Record Matches) | - | public | 17-28 | - | - |
| Match | (Text, Text, Integer, Integer, var Record Matches) | - | public | 17-28 | - | - |
| Match | (Text, Text, Integer, Integer, var Record Regex Options, var Record Matches) | - | public | 17-28 | - | - |
| Match | (Text, Text, var Record Matches) | - | public | 17-28 | - | - |
| Match | (Text, Text, var Record Regex Options, var Record Matches) | - | public | 17-28 | - | - |
| Replace | (Text, Text, Text, Integer) | Text | public | 17-28 | - | - |
| Replace | (Text, Text, Text, Integer, var Record Regex Options) | Text | public | 17-28 | - | - |
| Replace | (Text, Text, Text, Integer, Integer) | Text | public | 17-28 | - | - |
| Replace | (Text, Text, Text, Integer, Integer, var Record Regex Options) | Text | public | 17-28 | - | - |
| Replace | (Text, Text, Text) | Text | public | 17-28 | - | - |
| Replace | (Text, Text, Text, var Record Regex Options) | Text | public | 17-28 | - | - |
| Split | (Text, Text, Integer, var List) | - | public | 17-28 | - | - |
| Split | (Text, Text, Integer, var Record Regex Options, var List) | - | public | 17-28 | - | - |
| Split | (Text, Text, Integer, Integer, var List) | - | public | 17-28 | - | - |
| Split | (Text, Text, Integer, Integer, var Record Regex Options, var List) | - | public | 17-28 | - | - |
| Split | (Text, Text, var List) | - | public | 17-28 | - | - |
| Split | (Text, Text, var Record Regex Options, var List) | - | public | 17-28 | - | - |
| GetHashCode | () | Integer | public | 17-28 | - | - |
| Escape | (Text) | Text | public | 17-28 | - | - |
| Unescape | (Text) | Text | public | 17-28 | - | - |
| MatchResult | (var Record Matches, Text) | Text | public | 17-28 | - | - |
| Groups | (var Record Matches, var Record Groups) | - | public | 17-28 | - | - |
| Captures | (var Record Groups, var Record Captures) | - | public | 17-28 | - | - |
| Regex | (Text, var Record Regex Options) | - | public | 17-28 | - | - |
| IsMatch | (Text, Integer) | Boolean | public | 20-28 | - | - |
| IsMatch | (Text) | Boolean | public | 20-28 | - | - |
| Match | (Text, Integer, var Record Matches) | - | public | 20-28 | - | - |
| Match | (Text, Integer, Integer, var Record Matches) | - | public | 20-28 | - | - |
| Match | (Text, var Record Matches) | - | public | 20-28 | - | - |
| Replace | (Text, Text, Integer) | Text | public | 20-28 | - | - |
| Replace | (Text, Text, Integer, Integer) | Text | public | 20-28 | - | - |
| Replace | (Text, Text) | Text | public | 20-28 | - | - |
| Split | (Text, Integer, var List) | - | public | 20-28 | - | - |
| Split | (Text, Integer, Integer, var List) | - | public | 20-28 | - | - |
| Split | (Text, var List) | - | public | 20-28 | - | - |
| Regex | (Text) | - | public | 20-28 | - | - |

## Source

Symbols: Microsoft.SystemApplication.symbols.63ca2fa4-4f03-4f2b-a480-172fef340d3f, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 24: https://github.com/microsoft/BCApps, MIT, releases/24.x at fe14d3e6db00d28df3a69c7bba830813d70794e2.
AL source 25: https://github.com/microsoft/BCApps, MIT, releases/25.x at 68d52c129129c83b2e396a473aaa5b2ce61d2eed.
AL source 26: https://github.com/microsoft/BCApps, MIT, releases/26.x at 78c4acf0d64a8eee157ea80164fa8fc2acffc9eb.
AL source 27: https://github.com/microsoft/BCApps, MIT, releases/27.x at 1749020b4c9445a43e4f7f540e89b7fa76ec25fd.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 740f59156b249f8ed7cba2e28423f03ae7b07233.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
