+ in regular expression

Cameron Simpson cs at zip.com.au
Fri Oct 5 01:22:28 EDT 2012


On 03Oct2012 21:17, Ian Kelly <ian.g.kelly at gmail.com> wrote:
| On Wed, Oct 3, 2012 at 9:01 PM, contro opinion <contropinion at gmail.com> wrote:
| > why the  "\s{6}+"  is not a regular pattern?
| 
| Use a group: "(?:\s{6})+"

Yeah, it is probably a precedence issue in the grammar.
"(\s{6})+" is also accepted.
-- 
Cameron Simpson <cs at zip.com.au>

Disclaimer: ERIM wanted to share my opinions, but I wouldn't let them.
        - David Wiseman <dwiseman at erim.org>



More information about the Python-list mailing list