Cant find Regex unit when compiling for WEB

I have some generic libraries that can be used for VCL, FMX, WEB etc. One of the uses Regex.

  • For VCL, it compiles fine.
  • For WEB, the compiler can not find the unit. So for now, I have had to remove it with a compiler directive.
 {$ifndef WEBLIB}System.RegularExpressions,{$endif}

Is there a reason and workaround for this?

In TMS WEB Core, regular expression support is via the JavaScript RegExp object

so, it is not a 1:1 match with the Delphi regular expression implementation.
That is why we didn't put it in the same unitname to avoid confusion it would match 1:1.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.