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.

Ağ

Returns 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.

  1. /0
  2. l1
  3. o2
  4. g3
  5. i4
  6. n5
  7. .6
  8. p7
  9. h8
  10. p9
  11. ?10
  12. u11
  13. s12
  14. e13
  15. r14
  16. =15
  17. a16
  18. b17
  19. c18
  • returned or converted

How the index arguments were read

ArgumentWrittenIndexRead as
First index00a decimal integer
Last index99a decimal integer
API endpointGEThttps://ronutz.com/api/v1/f5-irules-string-workbenchDocumented, not served. Opens the specification.

Kaynaklar

Appears in these workflows