in reply to Split Help
It's not exactly clear to me how you want to extract www.abcd.com.ppt from www.abcd.com/search, or www.efgh.in.doc from www.efgh.in#found... (looks like the .ppt and .doc should rather come from the content type of the page; also, what if there is more than one URL with the same host part?)
Anyhow, maybe the URI module could help. It provides various methods for getting the path, etc. components of an URL.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Split Help
by keeper12 (Novice) on May 11, 2010 at 08:12 UTC | |
by almut (Canon) on May 11, 2010 at 08:26 UTC |