Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Forum Post: RE: Problem with Regular Expression and accents

$
0
0
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

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>