DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

(m4.info.gz) Substr

Info Catalog (m4.info.gz) Regexp (m4.info.gz) Text handling (m4.info.gz) Translit
 
 Extracting substrings
 =====================
 
    Substrings are extracted with `substr':
 
      substr(STRING, FROM, opt LENGTH)
 
 which expands to the substring of STRING, which starts at index FROM,
 and extends for LENGTH characters, or to the end of STRING, if LENGTH
 is omitted.  The starting index of a string is always 0.
 
      substr(`gnus, gnats, and armadillos', 6)
      =>gnats, and armadillos
      substr(`gnus, gnats, and armadillos', 6, 5)
      =>gnats
 
    The builtin macro `substr' is recognized only when given arguments.
 
Info Catalog (m4.info.gz) Regexp (m4.info.gz) Text handling (m4.info.gz) Translit
automatically generated byinfo2html