JamesBowen
19+ years progress programming and still learning.
Hi,
Can someone please try testing the code below on OE12.8 on Linux OS to test the new .NET compatiablity.
I want to get a good idea of what will work with pratical examples.
I understand that .NET events or anything GUI related won't work on a Linux distro and that is acceptable with the application I'm currently working on.
Can someone please try testing the code below on OE12.8 on Linux OS to test the new .NET compatiablity.
I want to get a good idea of what will work with pratical examples.
I understand that .NET events or anything GUI related won't work on a Linux distro and that is acceptable with the application I'm currently working on.
Code:
define variable patternAdv as character no-undo.
define variable patternBas as character no-undo.
define variable emailAddress as character no-undo.
emailAddress = "yourname@domain.com".
// Some of the regex characters had special meaning to the ABL compiler.
// The expression needed to be encoded using hex.
patternBas = string( hex-decode( "5e5b612d7a412d5a302d392e5f252b2d5d2b405b612d7a412d5a302d392e2d5d2b5c2e5b612d7a412d5a5d7b322c7d24" ) ).
patternAdv = string( hex-decode( "5e283f69295b612d7a302d392123242526272a2b2f3d3f5e5f7b7c7d7e2d5d2b283f3a2e5b612d7a302d392123242526272a2b2f3d3f5e5f7b7c7d7e2d5d2b292a40283f3a5b612d7a302d395d283f3a5b612d7a302d392d5d2a5b612d7a302d395d293f5c2e292b5b612d7a5d7b322c7d24" ) ).
message System.Text.RegularExpressions.Regex:IsMatch(emailAddress, patternBas).
message System.Text.RegularExpressions.Regex:IsMatch(emailAddress, patternAdv).