Displaying page
of
pages;
Items to
Title |
Test
Details
Strip Domain from URL
|
Expression |
http://[^/]*/
|
Description |
I was looking for a long time for a simple regex to strip the domain name from a long url or to Get rid of directories and pages. I found a simple one that I wanted to share. If you have http://www.google.com/products/bob?gmail.ckj it will return only http://www.google.com getting rid of all the other parts of the url
|
Matches |
http://www.google.com
|
Non-Matches |
http://www.google.com/products/bob?gmail.ckj
|
Author |
Rating:
Not yet rated.
Adil Berdai
|
Displaying page
of
pages;
Items to