Regex with ASCII and non-ASCII chars
- From: "TOXiC" <GatlingGun@xxxxxxxxx>
- Date: 31 Jan 2007 03:46:09 -0800
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 :)
.
- Follow-Ups:
- Re: Regex with ASCII and non-ASCII chars
- From: Peter Otten
- Re: Regex with ASCII and non-ASCII chars
- Prev by Date: another newbie question: why should you use "*args" ?
- Next by Date: Re: another newbie question: why should you use "*args" ?
- Previous by thread: another newbie question: why should you use "*args" ?
- Next by thread: Re: Regex with ASCII and non-ASCII chars
- Index(es):
Relevant Pages
|