microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
744 stars 245 forks source link

Expose/Add RegularExpressions.Regex.Replace #2167

Closed zhaohowie closed 6 years ago

zhaohowie commented 6 years ago

Hello,

I saw there is method called IsMatch in the Codeunit 10.

Can you also expose or add in Replace method in Codeunt 10?

The method will be, Replace(string input, string pattern, string replacement) : Text // Ignore case sensitive by default

Thanks,

JesperSchulz commented 6 years ago

We've already exposed two functions in COD10: RegexReplace@55(Input@1000 : Text;Pattern@1001 : Text;Replacement@1002 : Text) : Text; RegexReplaceIgnoreCase@52(Input@1000 : Text;Pattern@1001 : Text;Replacement@1002 : Text) : Text; Those should meet your needs :) If not, please reopen issue.