Menu
Hello,
I’ve been racking my brain with regular expressions and writing patterns. What I’ve been trying to do is giving me a brain squeeze. Maybe some one could help.
I’m getting the refering site with
[code=php]$thisPage=$_SERVER[PHP_SELF];
and I just want to get the domain. Everything in between the first . and the second dot. This is where I eventually gave when writing the pattern
[code=php]$pattern = “/.{*}./”;
Thanks,
maddDidley
[url]www.maddapps.com