Hi, can you please use function FromEncoding on the source before putting it into the regular expression function. The following example works for me: SetEncoding("UTF-8"); sSource := FromEncoding(" Google Microfocus Borland "); sRegex := "id=\"\([^\"]*\)\"[^>]*>Microfocus<"; StrRegexCompile(hRegex, sRegex); match := StrRegexExecute(hRegex, sSource); if match then StrRegexSubst(hRegex, "\1", sTarget, STRING_COMPLETE); print("match: "+sTarget); ; else print("no match"); ; end; Cheers, Thomas
↧