Forum Discussion
soymanue
Nimbostratus
Oct 12, 2012Hostname split
Hello
I need to split a hostname into three parts ( ..).
This can be done al least on two ways:
1) scan [HTTP::host] %\[^.\].%\[^.\].%s prefix host suffix
2) set prefix [ge...
What_Lies_Bene1
Cirrostratus
Oct 12, 2012I wouldn't know how to code it but assuming you know that the domain name or names will always end .com or whatever, why not just compare $host against .com and if it's a match, shuffle your fields: set suffix = $host, set host = $prefix, set prefix = "blank"?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects