How extract a string from path using regex? -
first try me!
i need extract string "videos" path directory:
/d/servers/domain/www/domain.com/administrator/components/com_videos/videos.php
how proceed solve issue?
the question's title states wants regex solution.
so regex you're looking is:
/(\w+)\.php$/
Comments
Post a Comment