I would like to write a regular expression that starts with the string \"wp\" and ends with the string \"php\" to locate a file in a directory. How do I do it?
Examp
This should do it for you ^wp.*php$
^wp.*php$
Matches
wp-comments-post.php wp.something.php wp.php
Doesn't match
something-wp.php wp.php.txt