<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<a class="moz-txt-link-freetext" href="http://www.voip-info.org/wiki-Asterisk+variables">http://www.voip-info.org/wiki-Asterisk+variables</a><br>
section: substrings<br>
F.<br>
<br>
<blockquote cite="mid87irpuak8u.fsf@beck.kurtkrenn.com" type="cite">
<pre wrap="">Christian Reelfs <a class="moz-txt-link-rfc2396E" href="mailto:chris@mynnga.de"><chris@mynnga.de></a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
<pre wrap=""><!---->
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:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
___________________________________
Filip Drągowski
Mobile: +48(0)500 054045
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:F.Dragowski@ontp.net">F.Dragowski@ontp.net</a>
___________________________________
ONTP.NET Tomasz Karczewski
Aleja Wojska Polskiego 33 pokoj 122
65-077 Zielona Góra, Poland
Mobile: +48(0)501 653395
Office: +48(0)68 4141018
Fax: +48(0)68 4141017
<a class="moz-txt-link-freetext" href="http://www.ontp.net">http://www.ontp.net</a>
___________________________________</pre>
</body>
</html>