/^(file.+)\.pdf$/g
This should be capturing the file names except the extension. But that is not happen in my case.
Got this solution from this site https://regexone.com/lesson/capturing_groups
/^(file.+)\.pdf$/g
This should be capturing the file names except the extension. But that is not happen in my case.
Got this solution from this site https://regexone.com/lesson/capturing_groups