I have a user specified URL that has a wildcard in it, e.g. http://site.com/project/*/account
In this case * could be anything, a number, a character or anything else.
I want to get regex that would find a match for that. The location of the wildcard * changes and could be http://site.com/user/*/title
or http://site.com/user/*/*/*/delete
(just as an example, depends on the site ... so all possibilities should be supported)
Any ideas or suggestions on how to do this? I was thinking of just getting the regex code for any character and replacing all occurrence of * with that regex code. Then comparing that with the current URL to see if it is a match.