I need a regex match that can match to file paths. Basically I am trying to match something which has "/" in the string and ends with "."something.
Ex: test/helpers/home/file_name.php
Can I get some help?
You could either use sth. like (see the demo on regex101.com)
(?=[^/]*/).+\.php
Or glob(), see the documentation on php.net.