Christian Reelfs <[EMAIL PROTECTED]> writes: > Hi, sorry for this noop question, > but does anybody know how to cut the first digit of a variable? > > example: > 044612345 > should be after cut operation: > 44612345
Look at README.variables! It says: ,---- | The format for removing characters from a variable can be expressed as: | | ${variable_name[:offset[:length]]} | | If you want to remove the first N characters from the string assigned | to a variable, simply append a colon and the number of characters to | remove from the beginning of the string to the variable name. | | ;Remove the first character of extension, save in "number" variable | exten => _9X.,1,Set(number=${EXTEN:1}) `---- cu, Wolfgang _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users