Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- programming_book
- Malaysia
- management
- web
- Italy
- Spain
- Java
- program
- QT
- Linux
- hbase
- Software Engineering
- MySQL
- erlang
- leadership
- django
- history
- Programming
- comic agile
- RFID
- Python
- ubuntu
- essay
- hadoop
- Kuala Lumpur
- Artificial Intelligence
- France
- Book
- Book review
- agile
Archives
- Today
- Total
목록Pattern Matching (1)
python 한글 unicode/utf-8 pattern matching
상황; 유니코드 한글만 pattern matching으로 찾고 싶은 경우unicode table; http://jrgraphix.net/r/Unicode/AC00-D7AF>>> print unichr(int('AC00', 16)) 가 >>> print unichr(int('D7A3', 16)) 힣 >>> korPattern = re.compile(u'[\uAC00-\uD7A3]+', re.U) >>> t = u'[[프랑스]] [[파리 (프랑스)|파리]]' >>> for m in re.finditer(korPattern, t): print m.group() ... 프랑스 파리 프랑스 파리utf-8>>> korPattern = re.compile('([\xE0-\xFF][\x80-\xFF][\x80-\xFF..
Programming
2014. 5. 7. 10:00