Forum Discussion
Nader_125543
Nimbostratus
Sep 05, 2013APM/TCL question, how to replace the fouth octet in network address which include subnet
I have a variable which I inquiry from AD, the variable is in form of x.x.x.x/255.255.255.0 - I need to replace the fourth octet with "0", normally it is set to .254 I have tried this but it does not...
Kevin_Stewart
Employee
Sep 06, 2013Try this:
set tmp [regsub -all {.254/} [mcget {session.ad.last.attr.wWWHomePage}] .0/]; return $tmp
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