Forum Discussion
Samir_Jha_52506
Nov 20, 2017Noctilucent
You can use
getfield
function also to match the column if the position is known.
Example: XXX-GHDF-12XD45
set eidval {XXX-GHDF-12XD45}
set val [getfield $eidval "-" 3]
https://devcentral.f5.com/wiki/irules.findstr.ashx
OR
set spr "XXXA-GHDF-12XD45"
set sub_spr [string range $spr [string last "-" $spr]+1 end
- Stanislas_Piro2Nov 20, 2017Cumulonimbus
I also watched
command but didn't find how to say the last field.getfield
- Samir_Jha_52506Nov 20, 2017Noctilucent
You are right. I am just capturing position value with getfield function.