regular expression

Batara Kesuma bkesuma at REMOVECAPITALS.yahoo.com
Sat May 18 14:29:04 EDT 2002


Hi Sean,

On Sat, 18 May 2002 10:46:19 -0700 (PDT)
"Sean 'Shaleh' Perry" <shalehperry at attbi.com> wrote:

> you are very close to what you need.
> 
> rule = re.compile(r'^\d{6}$') # ^ means start of string, then \d{6} is 6
> numbers
>                               # then $ is end of string.

Thank you very much. But what does the 'r' in (r'^\d{6}$') means?

--bk



More information about the Python-list mailing list