xstring

String tests.

Loading

\usepackage{xstring}

Built into mLaTeX. Loading it is accepted and reads nothing; what the package does is mLaTeX's own work, and any command of it that mLaTeX does not define comes from the glossary.

Commands

\IfStrEq, \IfSubStr, \StrBefore, \StrLeft, \StrLen, \StrSubstitute.

Example

A document that uses it, from mLaTeX's own tests, so it compiles as written, and below it what mLaTeX sets from it in your browser:

xstring.tex
\documentclass{article}
\usepackage{xstring}
\begin{document}
\IfSubStr{hello}{ell}{yes}{no}, \StrLen{hello}, \StrLeft{hello}{2}, \StrSubstitute{abc}{b}{B}, \IfStrEq{a}{a}{same}{diff}, \StrBefore{a-b}{-}.
\end{document}
OutputLoading mLaTeX in your browser
Loading mLaTeX