iRules string workbench
Run a Tcl 8.4 string command (range, first, map, match, compare, trim and more) and see the result on a character ruler: what was searched, matched, returned or replaced, and how indexes like end-1 or 010 were read. Local, no network.
RetiReturns the characters from first to last, both included. Indexes can be integers, end, or end-N.
Try
The command
string range /login.php?user=abc 0 9
Result /login.php
The string, character by character
19 characters; the small numbers are indexes, counted from 0.
- /0
- l1
- o2
- g3
- i4
- n5
- .6
- p7
- h8
- p9
- ?10
- u11
- s12
- e13
- r14
- =15
- a16
- b17
- c18
- returned or converted
How the index arguments were read
| Argument | Written | Index | Read as |
|---|---|---|---|
| First index | 0 | 0 | a decimal integer |
| Last index | 9 | 9 | a decimal integer |
API endpointGEThttps://ronutz.com/api/v1/f5-irules-string-workbenchDocumented, not served. Opens the specification.