I thought this would be really easy but I can’t find a simple solution, I really like PHP but only know the basics.
I’m after a simple something so that I can find:
http://www.myurl.com/*
So just the my url followed by wildcard. So it would return:
http://www.myurl.com/page1.php
http://www.myurl.com/page2.php
http://www.myurl.com/page3.php
but not
http://www.stackoverflow.com
Is regex the way to go or is it overkill?
Sounds like a
startsWithfunction would work well.You can use it like: