>In article <d8f8d76d-0a47-4f59-8f09-da2a44cc1...@googlegroups.com>, > Rick Johnson <rantingrickjohn...@gmail.com> wrote: > >> As an aside i prefer to only utilize a "character set" when >> nothing else will suffice. And in this case r"[0-9][0-9]*" >> can be expressed just as correctly (and less noisy IMHO) as >> r"\d\d*". > >Even better, r"\d+" I tend tot do that too, even though technically the two are not perfectly equivalent. With the re.LOCALE flag LC_ctype is also affected, which affects what is captured by \d but not by [0-9] -- https://mail.python.org/mailman/listinfo/python-list
- Re: Question about metacharacter '*' MRAB
- Re: Question about metacharacter '*' Devin Jeanpierre
- Re: Question about metacharacter '*' Rick Johnson
- Re: Question about metacharacter '*' Rick Johnson
- Re: Question about metacharacter '*' Roy Smith
- Re: Question about metacharacter '*' Rick Johnson
- Re: Question about metacharacter '... Rick Johnson
- Re: Question about metacharacter '*' rxjwg98
- Re: Question about metacharacter '*' Devin Jeanpierre
- Re: Question about metacharacter '*' Mark Lawrence
- Re: Question about metacharacter '*' Albert-Jan Roskam
- Re: Question about metacharacter '*' MRAB
- Re: Question about metacharacter '*' Devin Jeanpierre
- Re: Question about metacharacter '*' Ian Kelly