Forum Discussion

VersEV1's avatar
VersEV1
Level 4
8 years ago

regex search expression

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

  • 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

  • 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