DX Infrastructure Manager

Expand all | Collapse all

REGEX - Time-formatting primitives

  • 1.  REGEX - Time-formatting primitives

    Posted 12-24-2018 07:49 AM

    Dear Team,


    I have below files which are getting generated on daily basis and have to capture some keywords from it. files looks like.....




    Description - 20181224T100002.log ( 2018 - Year, 12 - Month, 24 - Date and then alphanumeric it can be T100001 or T100002)


    I am trying to create regex to read the same but no luck and seeking help please.

    this is what I am using -

    /opt/tmp/prima-batch-%Y%m%d%Z.log or /opt/tmp/prima-batch-%Y%m%d%*.log Please advise.



    Simran Jeet Bhagat

  • 2.  Re: REGEX - Time-formatting primitives

  • 3.  Re: REGEX - Time-formatting primitives

    Posted 01-02-2019 07:28 AM

    Hello David, Thanks for the information/article. however in our case log file is end with some alphanumeric character. we are good till date format and looking for some help " how to capture alphanumeric stiff" Please advise if we can use some wild character in the regex to capture this.


    Looking forward for other recommendations.



    Simran Jeet Bhagat