General Text Matcher v1.4 (Based on the reference code)