Forum Discussion

Dan_103700's avatar
Dan_103700
Icon for Nimbostratus rankNimbostratus
Nov 05, 2010

substring function in irules?

Anyone know if there is a substring function that's supported in irules?

 

 

I need to be able to take one of my variables in my irule and truncate it to always be 500 or fewer characters long.

 

 

Thanks,

 

Dan

 

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi Dan,

     

     

    You can use [string range $string 0 499] to get the first 500 characters.

     

     

    Aaron