![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archive\l operation in regular expressions
From: Kalle Anka <skromta@gmail.com>
Date: Tue May 24 2005 - 15:23:53 CEST
I've started to play around with regexps in Python and I tried
print re.sub( r'(\bw\w+\b)', r'\u\1', 'will it work')
and get
\uwill it \uwork
when I had expected
Will it Work
I tried to find some documentation about this but I can't find anything
|