I collect resource dll file names into TStringList
by a given mask. It works fine to that point. After that I want to collect the language codes contained by the file names. Is there any built-in
function or a well formed regexp
to get the right string section depending on the mask?
Example 1:
Mask : resources_%s.dll
One of the collected file names : resources_en.dll
Language code : en
Example 2:
Mask : %s_resources.dll
One of the collected file names : eng_resources.dll
Language code : eng
Example 3:
Mask : res-%s.dll
One of the collected file names : res-en.dll
Language code : en