I want to create a pregmatch pattern which applies to:
http://site.local/app/**/admin
text. I created something, which looks good, but it also pass the
http://site.local/app/vf/adming
what I dont want to. The basically created pattern:
preg_match('/http:\/\/site.local\/app\/.*\\/admin/', $siteUrl)
how should it be corrected?
Btw: operators/admins, I created this thread previously and since then that account is disabled. https://stackoverflow.com/questions/11139579/i-need-a-regexp Now that you see, I really tried it hard, may I get that account back? If not, I understand
Use ^ and $ to “tell” regex the start and end of your pattern.