Peeking for regexes in xparse #482
Labels
duplicate
This issue or pull request already exists
enhancement
New feature or request
l3regex
xparse
Historical: see latex3/latex2e
Given xparse: eats space token while looking for not provided, trailing optional argument #466 I've looked again at
\peek_
functions. Despite there being many functions: 3catcode
/charcode
/meaning
, times 2 (remove
or not), times 2 (ignore_spaces
or not), times 3 (TF
,T
,F
), plus a few others (N_type
,collect_inline
, …), the functions don't cover every use case. One option is to try and find building blocks. Another option is to provide a very general tool: peeking for an arbitrary regex, e.g.or a more general
\peek_regex_replace:nnTF
, or even something likeWe regularly get requests for all sorts of new argument types in
xparse
([xparse] "optional token" or "list of options for t type argument" #424, xparse: arguments of restricted content #465, xparse sorted embellishment list #467, some stackexchange questions). Should we bite the bullet and provide aregex
argument type, perhapsp
for pattern?The text was updated successfully, but these errors were encountered: