CTAN Comprehensive TeX Archive Network

Directory 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

Download the contents of this package in one zip archive (19.5k).

substr – Deal with substrings in strings

The package provides commands to deal with substrings of strings. Macros are provided to:

  • determine if one string is a substring of another,
  • return the parts of a string before or after a substring, and
  • count the number of occurrences of a substring.

LicensesThe Project Public License 1
Copyright2000, 2005, 2009 Harald Harders
MaintainerHarald Harders (inactive)
Contained inTeX Live as substr
MiKTeX as substr
TopicsMacro support
Guest Book Sitemap Contact Contact Author