Hi Team
I have file names C:\SPLUNKCEBU\rdilraanan010-4-1.ncr.com.Gi0-2.csv
from which i need host_regex to take only the name of the file ex: rdilraanan010-4-1.ncr.com.Gi0-2 No path and no extension
Right now i have got a host_regex =(?\w+-\d+-\d) like this but this extracts only till rdilraanan010-4-1 which is not my desired output
can any one help
Thanks and Regards,
Deepthi Bulusu.
This worked for me using your example on regex101.com
"(?<filename>[\w-\d\.]+)\.\w"
This worked for me using your example on regex101.com
"(?<filename>[\w-\d\.]+)\.\w"