rahulme81 has asked for the wisdom of the Perl Monks concerning the following question:
Hi. I have log file names in below format
1) apachelog_LT100.7.7.7_21.SRV.apache.20161130-123456.258976.log
2) APACHE_PP1.20161130-12:39:55-30822.Release.LT100.7.7.7.PP1.log
3) APACHE_PS_PP1.20161130-15:29:37-5319.ebf_run.LT100.7.7.7.log
Need to store the date 20161130 in one variable for all files separately, How do I create the regular expression for this. Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting datapart (YYYYMMDD) with filename regular expression
by stevieb (Canon) on Dec 01, 2016 at 15:47 UTC | |
|
Re: Extracting datapart (YYYYMMDD) with filename regular expression
by Laurent_R (Canon) on Dec 01, 2016 at 23:08 UTC | |
|
Re: Extracting datapart (YYYYMMDD) with filename regular expression
by tybalt89 (Monsignor) on Dec 01, 2016 at 15:47 UTC |