cancel
Showing results for 
Search instead for 
Did you mean: 

regex search expression

VersEV1
Level 4

anyone have any regex expressions for finding and extracting saveset id or transaction id from logs? maybe useing ~z~ or something else

1 ACCEPTED SOLUTION

Accepted Solutions

ChrisLangevin
Level 6
Employee

Here are the RegEx strings I use:

Transaction ID (IdTransaction):

[0-F]{8}-[0-F]{4}-[0-F]{4}-[0-F]{4}-[0-F]{12}


Saveset ID:

\d{15}~\d{18}~(Z|\d|\d\d)~[0-F]{31,32}


DVS file (EV 8.0 and later):

[0-F]{32}.DVS


Legacy DVS file (EV 2007 and earlier):

\d{15}~\d{18}~\d{1}.DVS


DVSSP file:

[0-F]{32}~[0-F]{2}~[0-F]{8}~[0-F]{2}~\d{1}.DVSSP


DVSCC file:

[0-F]{32}~[0-F]{2}~[0-F]{8}~[0-F]{2}~\d{1}.DVSCC


EV Collection file:

Collection\d{1,}.CAB

All of these use the .NET Framework RegEx syntax.

 

--Chris

View solution in original post

1 REPLY 1

ChrisLangevin
Level 6
Employee

Here are the RegEx strings I use:

Transaction ID (IdTransaction):

[0-F]{8}-[0-F]{4}-[0-F]{4}-[0-F]{4}-[0-F]{12}


Saveset ID:

\d{15}~\d{18}~(Z|\d|\d\d)~[0-F]{31,32}


DVS file (EV 8.0 and later):

[0-F]{32}.DVS


Legacy DVS file (EV 2007 and earlier):

\d{15}~\d{18}~\d{1}.DVS


DVSSP file:

[0-F]{32}~[0-F]{2}~[0-F]{8}~[0-F]{2}~\d{1}.DVSSP


DVSCC file:

[0-F]{32}~[0-F]{2}~[0-F]{8}~[0-F]{2}~\d{1}.DVSCC


EV Collection file:

Collection\d{1,}.CAB

All of these use the .NET Framework RegEx syntax.

 

--Chris