@rsstr() Function

Top  Previous  Next

@rsstr() function ("Reverse Substring") extracts a substring from a string with the given position and length. The difference with @sstr() function is  that the @rsstr() operates in the reverse order.

Syntax:

@sstr(string-expression, position-expression[, length-expression])

 

Examples:

@//    7654321

@rstr('abcdefg',2,3) @// result: 'def'

@sstr('abcdefg',3)   @// result: 'abcde'

@sstr('abcdefg',1,1) @// result: 'g'

 

See @sstr(), @rsstr(), @sstra(), @sstral(), @sstrb(), @sstrbl()