Wow, that was awesome. Thanks mwinter, let me read all that(sorry I am at school now).
Printable View
Wow, that was awesome. Thanks mwinter, let me read all that(sorry I am at school now).
Hmmm... a lot to work through if new, but that's a good explanation.
Thanks, Mike.
Yea, a lot of work. I have even saved a copy of that(as a .txt file) for future references. Thanks again mwinter.:D
I'm testing this out (actually it's helping me with a script that i'm writing), and I was wondering what's wrong with this:
It's not being true.PHP Code:if (preg_match("([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z]+", $url) == 1) {
dostuff();
}
Firstly, you should use delimiters:Subdomains, anyone? .co.uk?Code:/([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z]+/