psst, there is NO standardized reg-ex. you've been living in a perl bubble.
undoubtedly other people will have better advice.
"Life can only be understood backwards;
But it must be lived forwards" --S.K.
___
Tutor maillist - Tutor@python.or
On Sun, Aug 2, 2009 at 2:55 PM, gpo wrote:
>
> Python:
> line='>Checking Privilege for UserId:
> {874BE70A-194B-DE11-BE5C-000C297901A5}, PrivilegeId: {prvReadSdkMessage}.
> Returned hr = 0'
> (re.search('(\w+)\:.+.{8}-.{4}-.{4}-.{4}-.{12}',line)).group(0)
> RESULT
> 'UserId: {874BE70A-194B-DE11-BE5
Thanks for the replies in the last thread. I'm still trying to figure out
how Python is handling RegEx. I'm converting my thoughts from Perl (the
mother of regex) to Python, and expect the same results. Why are they
different?
Perl:
$line='>Checking Privilege for UserId:
{874BE70A-194B-DE11-BE