[ create a new paste ] login | about

Link: http://codepad.org/xWz5cZj5    [ raw code | output | fork ]

Python, pasted on Jun 15:
1
2
3
4
5
# coding=utf-8

import re
i = re.search(u'\\bשלום\\b', u'שלום עולם', re.U)
print i.group(0).encode('ascii','xmlcharrefreplace')


Output:
1
שלום


Create a new paste based on this one


Comments: