Regex with ASCII and non-ASCII chars

TOXiC GatlingGun at gmail.com
Wed Jan 31 12:46:09 CET 2007


Hello everybody.
How I can do a regex match in a string with ascii and non ascii chars
for example:

    regex = re.compile(r"(ÿÿ‹ð…öÂty)", re.IGNORECASE)
    match = regex.search("ÿÿ‹ð…öÂty")
    if match:
        result = match.group()
        print result
    else:
        result = "No match found"
        print result

it return "no match found" even if the two string are equal.
Help me please!
Thx in advance :)




More information about the Python-list mailing list