I have some domains I want to split but can\'t figure out the regex...
I have:
http://www.google.com/tomato
http://int.google.c
The answer here might be what you're looking for.
Getting parts of a URL (Regex)