|
Amand Tihon
amand.tihon at alrj.org
Thu Jul 23 01:38:35 EDT 2009
Le jeudi 23 juillet 2009 05:49:52, Rakotomandimby Mihamina a écrit :
> Hi all
> let the following simplified code be:
>
> import re
> textarea=for.getfirst('text')
> spaces=re.compile('^( )+$')
This regexp will only match a string that contains nothing else than one or
more spaces.
^ start of the string
( )+ one or more space
$ end of the string
Remove the caret and the dollar sign, and it should be fine.
--
Amand Tihon
1 Rue du Ruchaux, 1490 Court-St-Etienne, Belgium
+32 479 207 743
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: This is a digitally signed message part.
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20090723/78e21bc5/attachment.bin
|