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# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -