Answer by wipet for Check for group as argument (expandable)
I don't understand what you exactly want, but maybe the following code can help you. (Edit: I added new version of the code which is full...
View ArticleAnswer by Joseph Wright for Check for group as argument (expandable)
Based on the expandable loop code in expl3, but as requested using no packages:\documentclass{article}\makeatletter\newcommand\MyIfGroupTF[1]{%...
View ArticleAnswer by egreg for Check for group as argument (expandable)
This ignores spaces (but doesn't deal with the edge case):\documentclass{article}\usepackage{xparse}\ExplSyntaxOn\NewDocumentCommand{\MyIfGroup}{mmm} { \regex_match:nnTF { \A\s*\cB\{.*\cE\}\s*\Z } { #1...
View ArticleAnswer by David Carlisle for Check for group as argument (expandable)
This doesn't ignore space, I think it's easier to use strcmp, I added one extra test for {a} at the...
View ArticleCheck for group as argument (expandable)
I want to check whether an argument of a command is fully contained in a pair of curly braces without using any extra packages. For this I define two macros containing { and } with catcode 12,...
View Article