Site Tools


substr
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


substr [2007/03/02 02:32] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +# $EPIC: substr.txt,v 1.6 2007/03/02 02:32:04 jnelson Exp $
 +======Synopsis:======
 +$__substr__(<substring> <search string>)
 +
 +======Technical:======
 +The <substring> argument is a [[what is a word|dword]] which is unlike most
 +other functions.
 +
 +These functions search for <substring> in <search string> and return the
 +index to it. $[[rsubstr]]() is identical to $__substr__(), except it searches from
 +the end to the beginning.
 +
 +======Practical:======
 +They can be used to search for specific things in output from a server,
 +or as an alternative to $[[match]](*substring* searchstring).
 +
 +======Returns:======
 +-1 if <substring> not found in <search string> \\
 +index to <substring> in <search string> if found
  
substr.txt · Last modified: 2007/03/02 02:32 by 127.0.0.1