Re: [Tutor] REGEX EXPLANATION

2010-12-21 Thread Luke Paireepinart
Which part of the regexes do you not understand? Have you tried figuring themselves out yourself first? We don't typically give out answers here. This is a tutor list, not a solve your problems for you list. We're here to teach you how to fish, not cook for you. So show us where you're stuck and

[Tutor] REGEX EXPLANATION

2010-12-21 Thread delegbede
I have been reading regex in order to work around an assignment. Could anyone explain to me in plain english what the following regex expression translate to. (r'PSC(?P\d{6})(DC|VR)(\d{2})(RC|GA)(\d{3})(!?([A-Z\d]{1,})@?(.*))?', re.I) (r'PSC(?P\d{6})VR(?P\d{2})RC(?P\d{3})(?P[ABCDEFGHJKMNPQRS