Regular Expressions 101

Library entries

ClearQuest Audit Regex

Vote

0

Regular Expression
python

"
(?<=====START====\n)(?P<entry>(?:Time : )(?P<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} [+-]?\d{2}:\d{2})(?:\n)(?:Schema Rev : )(?P<schema>\d+?)(?:\n)(?:User Name : )(?P<user_name>[A-Za-z \p{L}\p{Nl}]+?)(?:\n)(?:User Login : )(?P<user_login>[uU]\d+?)(?:\n)(?:User Groups : )(?P<user_groups>[\w\b ]+?)(?:\n)(?:Action : )(?P<action>[\w\b ]+?)(?:\n)(?:State : )(?P<state>[\w\b ]*?)(?:\n)(?:==Fields==\n)(?P<fields>.+))(?=\n====END====)
"
gs

Description

Loading markdown...
Submitted by anonymous - a year ago