Wow, that was awesome. Thanks mwinter, let me read all that(sorry I am at school now).
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.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Yea, a lot of work. I have even saved a copy of that(as a .txt file) for future references. Thanks again mwinter.![]()
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();
}
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Firstly, you should use delimiters:Subdomains, anyone? .co.uk?Code:/([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z]+/
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks