I tried doing the following regular expression function:
uses System.RegularExpressions;
...
function ValidateEmail(Email: string): Boolean;
begin
const EmailPattern = '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$';
Result := TRegEx.IsMatch(Email, EmailPattern);
end;
That works in VCL and FMX, but not in TMS WEB Core. It can’t find the System.RegularExpressions
unit:
[Error] can’t find unit “System.RegularExpressions”
How can I do regular expressions using Delphi in TMS WEB Core?