Hi,
I need to whitelist files that match this format in a directory. Hoping someone can help me....
WebAPIServ_RTP_L1.20160102_171339_084.log
WebAPIServ_RTP_L2.20160216_225645_002.log
WebAPIServ_MMK_L1.20160102_171339_084.log
WebAPIServ_MMK_L2.20160216_225645_022.log
WebAPIServ_OMA_L1.20160102_171339_084.log
WebAPIServ_OMA_L2.20160216_225645_022.log
If you're looking for just regex, depending on how specific you want it. Something like this might work:
WebAPIServ_[A-Z]{3}_L(1|2)\.\d{8}_\d{6}_\d{3}.log
If you're looking for just regex, depending on how specific you want it. Something like this might work:
WebAPIServ_[A-Z]{3}_L(1|2)\.\d{8}_\d{6}_\d{3}.log
Good places to play and define your regex:
http://www.regexr.com/
https://regex101.com/
Awesome. Great example as well.
Thanks!
Yup. Happy to help. If it works for you please accept as the answer. Thanks!