I am looking to extract particular string from path.
For example, I have to extract 4th value separated by (.) from filename. which is "lm" in below examples.
Examples:
/apps/java/logs/abc.defgh.ijk.lm.nopqrst.uvw.xyz.log
/apps2/java/logs/abc.defgh.ijk.lm.log
This will extract full file name:
.*\/(?<name>.*).log