Greetings,
I'm trying to figure out how Regex codeunit works in Business Central.
For example, lets say I have a Regex expression /(.*)/(.*)/(.*)/ and a text /Test123/Test456/Test789/.
How can I extract the values:
- Test123
- Test456
- Test789
I tried using the /Regex.Match(..)/ procedure, but it only extracts the whole value /Test123/Test456/Test789/ instead of separating it:
I'm a complete beginner in using the Regex, but according to the /regex101.com/, this should work. I'm not sure what am I missing here (unfortunately, there are not many examples on how to use Regex for BC):
My guess is that I need to use /Regex.Group(....)/ method, but I didn't figure out how to do it yet.
Can someone please help me to achieve this?
Thank you.