LuaRocks.org had a security incident in September 2026. Read the incident report.

String manipulation for (La)TeX

$ luarocks install xstring

The package provides macros for manipulating strings – testing a string’s contents, extracting substrings, substitution of substrings and providing numbers such as string length, position of, or number of recurrences of, a substring.

The package works equally in Plain TeX and LaTeX (though ε-TeX is always required). The strings to be processed may contain (expandable) macros.

Versions

1.86-117 hours ago(revision: 4)3 downloads

Dependency for

beamerswitch

Manifests