these path values are randomly present in a log file and they are embedded inside single quotes.
some thing like this:
this is the project path: '/usr/share/project/'
Assumptions:
No special chars will be there in the filesystem path that is: (~!@#$%^&*():;''><.,/?)
Code: Select all
\'(\/+[\w-_.\s]{1,255})+\'comments Please, so that I can optimize further.