Forum Discussion
Matt_Breedlove_
Nimbostratus
Jun 24, 2014Help with Scan or String first last and multiple/last occurence
Need some help trying to always match the string immediately preceding the first period and delimited by the leading dash
So given these hostnames, the desired match is indicated...I would be wanti...
Jun 24, 2014
Hi
How about this one?
set httphost "prod-discovery.acme.com"
set hostarr [lindex [split $httphost "-"] end]
set thepartyouwanted [lindex [split $hostarr "."] end-2]
/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
