iRules scan explainer
Give a value and a scan format and see each %d, %s or %[^&] line up against the characters it took, the variable it filled, and exactly why scanning stopped. Explains the -1 result and the Tcl 8.4 quirks. Local, no network.
NettverkTry
The command
scan 10:30 %d:%d hours minutes
scan returned 2
2 variables received a value.
The value, as the format consumed it
- 10
- 01
- :2
- 33
- 04
- converted
- literal matched
- converted (next)
Directive by directive
| Directive | Characters | Outcome | Value | Variable |
|---|---|---|---|---|
%ddecimal integer | 10 | stored | 10 | hours |
:literal text: must match exactly | : | matched | – | – |
%ddecimal integer | 30 | stored | 30 | minutes |
Every directive in the format ran.
Variables afterwards
hours10minutes30
API endpointGEThttps://ronutz.com/api/v1/f5-irules-scan-explainerDocumented, not served. Opens the specification.