I used to use HYPERSTR library for string processing routine. Now I use newer Delphi. I need to search a pattern in a string, for example the old function is function IsMa
function IsMa
if ? represent a single character:
if TRegEx.IsMatch('abcdef', 'abcd.f') then showmessage('match');
if ? represent any sting:
if TRegEx.IsMatch('abcdef', 'abcd.*f') then showmessage('match');
Don't have XE so haven't tested.