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

Popular posts from this blog

c# - Pausing a storyboard on TabItem mouse over -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -