See pdftex 1.30.0 announcement, in particular:
- \pdfmatch [icase] [subcount <number>}] {<pattern>}{<string>}
Implements pattern matching using the POSIX regex.
It returns the same values as \pdfstrcmp, but with the following
semantics:
-1: error case (invalid pattern, ...)
0: no match
1: match found
Options:
* icase: case insensitive matching
* subcount: it sets the table size for found subpatterns.
A number "-1" resets the table size to the start default.
- \pdflastmatch <number>
The result of \pdfmatch is stored in an array. The entry "0" contains
the match, the following entries submatches. The positions of the
matches are also available. They are encoded:
<position> "->" <match string>
The position "-1" with an empty string indicates that this entry is not
set.
askincludepackage has a section on how to use\pdfmatch. I have not yet studied this and the source code ofpdftex, but I will when I get time. – Bruno Le Floch Jan 03 '11 at 21:30[Markown](http://daringfireball.net/projects/markdown/syntax)allows you to put inline web links.) – chl Jan 22 '11 at 21:02