I have an app which uses a RegEx expression to convert text without spaces and make it readable. For Example, it will convert the string IAmOneSentence into I Am One Sentence. The regex expressions is as follows:
var
Exp: TRegEx;
value: string;
begin
Exp.Create('(?<=[a-z])(?<x>[A-Z])');
value := Exp.Replace(TheString, ' ${x}');
return value;
end;
This code has worked perfectly for me in Delphi Seattle. I run the app in Windows, iOS, and Android.
I upgraded to Delphi Tokyo 10.2 Update 1 and now this code no longer works for iOS/Android.
In iOS/Android I get the following:
Input: GreaterThan Output: GreaterT
If I try my app under Windows I get "Greater Than" which is correct.
Any ideas as to why this stopped working?
Thanks
Edited by: Joe Fermani on Aug 18, 2017 10:02 AM
Connect with Us