I have the following sample urls
/alfa/wp-includes/js/jquery/jquery.js
/beta/wp-content/plugins/app/js/media.js?parameter=value
/beta/wp-admin/network
/beta/wp-content/themes/journal/data.php
I'm using the following regex to match all paths, excluding paramethers
^/(alfa|beta)((/wp-(content|admin|includes))([^?\s]*)).*
This works well, but how to change the regex to exclude any paths which include a .php ? So it needs to return first 3 paths but not the last.