[regex] How to check for non-space character?

Gilles Ganault nospam at nospam.com
Sun Mar 22 05:03:10 EDT 2009


On Sat, 21 Mar 2009 08:53:10 -0500, Tim Chase
<python.list at tim.thechases.com> wrote:
>It looks like it's these periods that are throwing you off.  Just 
>remove them.  For a 3rd syntax:
>
>    (\S)(\d{5})
>
>the \S (capital, instead of "\s") is "any NON-white-space character"

Thanks guys for the tips.



More information about the Python-list mailing list