CTAN hazs a new package: stringstrings
This package provides a large and sundry array of routines for the manipulation of strings. The routines are developed not only for cosmetic application, such as the changing of letter cases, selective removal of character classes, and string substitution, but also for programming application, such as character look-ahead applications, argument parsing, if-tests for various string conditions, etc. A key tenet employed during the development of this package (unlike, for comparison, the \uppercase and \lowercase routines) was to have resultant strings be ``expanded'' (i.e., the product of an \edef), so that the \stringstrings routines could be strung together sequentially and nested (after a fashion) to achieve very complex manipulations.
This package is located at http://tug.ctan.org/tex-archive/macros/latex/contrib/stringstrings . More information is at http://tug.ctan.org/pkg/stringstrings (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
stringstrings – String manipulation for cosmetic and programming application
The package provides a large and sundry set of macros for the manipulation of strings. The macros are developed not merely for cosmetic application (such as changing the case of letters and string substitution), but also for programming applications such as character look-ahead, argument parsing, conditional tests on various string conditions, etc.
The macros were designed all to be expandable (note that things such as \uppercase and \lowercase are not expandable), so that the macros may be strung together sequentially and nested (after a fashion) to achieve rather complex manipulations.
|Steven B. Segletes