Podla toho co som ti predtym poslal nemas mat v tom regularnom vyraze __AstrologyAngleRegExp = \ u'^([0-9]+)[ \t°]*(' + \ __AstrologyAngleRegExp + \ ')?[ \t°]*(([0-9]+)[ \t\']*)?(([0-9]+)[ \t\"])?$'
na zaciatku to 'u' a nemas ho mat skompilovany takto __AstrologyAngleRegExp = re.compile(__AstrologyAngleRegExp) ale takto s flagom UNICODE __AstrologyAngleRegExp = re.compile(__AstrologyAngleRegExp, re.UNICODE) Roman Miklos <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 26.10.2006 16:40 Please respond to Konference PyCZ <python@py.cz> To Konference PyCZ <python@py.cz> cc Subject Re: [python] unicode a regulární výrazy 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 _______________________________________________ Python mailing list Python@py.cz http://www.py.cz/mailman/listinfo/python 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 _______________________________________________ Python mailing list Python@py.cz http://www.py.cz/mailman/listinfo/python