CTAN Comprehensive TeX Archive Network

Direc­tory macros/latex/contrib/substr


This package provides commands to deal with substrings in strings:
Determine if a string contains a substring, count appearances of a
substring in a string.

The Description of the commands can be found in the file substr.sty.

History of this package:

The package arises from a posting of me in the newsgroup
de.comp.text.tex in which I asked how to find out if a substring
is included in a string. Heiko Oberdiek
<oberdiek@ruf.uni-freiburg.de> posted the commands
\IfSubStringInString and \IfCharInString and suggested to write a
command which counts the appearances in a string. So, I wrote the
commands \CountSubStrings and \setcountertoSubStrings.
After I wrote this package I sent it to Heiko Oberdiek
who improved and rewrote many parts of it.

Copyright 2000, 2005, 2009 Harald Harders

This program can be redistributed and/or modified under the terms
of the LaTeX Project Public License Distributed from CTAN
archives in directory macros/latex/base/lppl.txt; either
version 1 of the License, or any later version.

Harald Harders

Down­load the con­tents of this pack­age in one zip archive (19.5k).

sub­str – Deal with sub­strings in strings

The pack­age pro­vides com­mands to deal with sub­strings of strings. Macros are pro­vided to:

  • de­ter­mine if one string is a sub­string of an­other,
  • re­turn the parts of a string be­fore or af­ter a sub­string, and
  • count the num­ber of oc­cur­rences of a sub­string.

Li­censesThe Project Public Li­cense 1
Copy­right2000, 2005, 2009 Har­ald Harders
Main­tainerHar­ald Harders (in­ac­tive)
Con­tained inTeX Live as sub­str
MiKTeX as sub­str
TopicsMacro sup­port
Guest Book Sitemap Contact Contact Author