Closed megel closed 11 months ago
Thanks, this is on our backlog.
Need this too
Would be very nice, e.g. for an advanced check if the E-Mail Address is valid:
procedure CheckValidEmailAddress(EmailAddress : Text);
var
RegEx : DotNet "'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Text.RegularExpressions.Regex";
RegExOptions : DotNet "'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Text.RegularExpressions.RegexOptions";
RegExPattern : Text;
begin
RegExPattern := '\A(?:[a-z0-9!#$%&''*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&''*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)\Z';
if not RegEx.IsMatch(EmailAddress, RegExPattern, RegExOptions.IgnoreCase) then
ERROR(InvalidEmailAddressErr,EmailAddress);
end;
Is there anything new about this issue? We would also need access to these classes. That would be very helpful for many problems. The two functions in the above-mentioned code unit are not sufficient to perform everything with regular expressions. You should get access to the matches.
No updates yet. It is still on the backlog
We also use RegExReplace and RegExMatch for Enrichment of Ebanking (Dutch localization). So it would be very welcome so we can upgrade to extension
Any update on this? We have found RegexReplace and IsMatch in codeunit 10, what is really cool, but we are still waiting for the MatchCollection.
Should be part of teh system.app https://github.com/microsoft/BCApps/tree/main/src/System%20Application/App/Regex/src
For some reason we use Regex to Validate, Split and Repleace text by complex expressions.