[python] unicode a regulární výrazy

Roman Miklos RMiklos na pss.sk
Čtvrtek Říjen 26 16:40:36 CEST 2006


Pozri sa na toto,  mas to takto skompilovane?

1. Python's regular expression engine supports Unicode. You can apply the 
same pattern to either 8-bit (encoded) or Unicode strings. To create a 
regular expression pattern that uses Unicode character classes for \w (and 
\s, and \b), use the "(?u)" flag prefix, or the re.UNICODE flag:
pattern = re.compile("(?u)pattern")
pattern = re.compile("pattern", re.UNICODE)


Mgr. Ing. Roman MIKLÓ© 
Prvá stavebná sporiteµňa a.s. 
Bajkalská 30, P. O. Box 48 
829 48  Bratislava 25 
Tel.: +421/ 2 / 582 31 174 
Fax: +421/ 2 / 582 31 109 



Daląí informace o konferenci Python