[asterisk-commits] branch 1.2 - r7470 /branches/1.2/doc/README.variables

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Dec 13 12:54:23 CST 2005


Author: kpfleming
Date: Tue Dec 13 12:54:22 2005
New Revision: 7470

URL: http://svn.digium.com/view/asterisk?rev=7470&view=rev
Log:
clarify substring documentation

Modified:
    branches/1.2/doc/README.variables

Modified: branches/1.2/doc/README.variables
URL: http://svn.digium.com/view/asterisk/branches/1.2/doc/README.variables?rev=7470&r1=7469&r2=7470&view=diff
==============================================================================
--- branches/1.2/doc/README.variables (original)
+++ branches/1.2/doc/README.variables Tue Dec 13 12:54:22 2005
@@ -94,17 +94,17 @@
 
 
 
-_______________________________
-REMOVING CHARACTERS FROM STRING
--------------------------------
-
-The format for removing characters from a variable can be expressed as:
+___________________________________
+SELECTING CHARACTERS FROM VARIABLES
+-----------------------------------
+
+The format for selecting 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
+If you want to select 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.
+skip 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})
@@ -115,7 +115,7 @@
 digit.
 
 If you use a negative offset number, Asterisk starts counting from the end 
-of the string and then removes everything before the new position. The following
+of the string and then selects everything after the new position. The following
 example will save the numbers 1234 to the 'number' variable, still assuming
 we've dialed 918005551234.
 



More information about the asterisk-commits mailing list