Forum Discussion
Jeff_47438
Mar 06, 2018Altocumulus
Can scan do this regex?
The string variable TO_HEADER1 is " "
Since this ANI was dynamic, I was going to try this...
"set ANI [regexp {([555])[^_]*\1} $TO_HEADER1 enclosed_string]"
Not sure if the regex works...
Stanislas_Piro2
Mar 06, 2018Cumulonimbus
you can use following command
set enclosed_string [findstr $TO_HEADER1 "555" 0 "_"]
0 is the character number skipped starting at the position of the first found character. 0 means "555" is included in the returned string.
If you can't to skip 555, use following command:
set enclosed_string [findstr $TO_HEADER1 "555" 3 "_"]
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