[Solved] How to search a particular string in a file using pattern matcher in java
Connection reset.*?\\b([^ .]+\\.xls)\\b You can use this regex.Grab the group 1 or capture 1.See demo. https://regex101.com/r/bN8dL3/3 1 solved How to search a particular string in a file using pattern matcher in java