On Wednesday 12 March 2008 01:29:16 Mark Quitoriano wrote:
> ok i got the answer
>
> Substrings ${foo:*offset*:*length*}
>
> returns a substring of the string *foo*, beginning at offset *offset* and
> returning the next *length* characters.
>
> - If *offset* is negative, it is taken leftwards from the right hand
> end of the string.
> - If *length* is omitted or is negative, then all the rest of the
> string beginning at *offset* is returned.
In 1.4 and 1.6, a negative length reduces the length of the total string:
${EXTEN:0:-5} gives you everything but the last 5 digits.
--
Tilghman
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users