Forum Discussion
Robert_47833
Aug 12, 2011Altostratus
how to change a string ,such as add a number after some letters
Hi,dear irule
I want to change the host name to another one
for example
www.cjj.com---->www2.cjj.com
cjj.com------>cjj2.com
*.cjj.com---->*2.cjj.com
domain [HTT...
Colin_Walker_12
Aug 12, 2011Historic F5 Account
While regsub would technically work, it's going to induce a lot of overhead. There are lots of other ways to go about that: scan, string map, etc.
Also, if you're looking at maintaining a list of origin -> modified domains, then you might be better of creating a data group to store them in and just do the translation in the code, rather than building out a complex regsub or the like.
Colin
Recent Discussions
Related Content
- May 24, 2019Former Member
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