The l3regex tag has no wiki summary.
3
votes
1answer
42 views
How can I match a control sequence using \regex_match?
How can I match a control sequence using \regex_match?
This code
\newcommand{\iw}[1]{\immediate\write16{#1}}
\iw{1 should be true}
\regex_match:nnTF {May} {May} {\iw{TRUE}} {\iw{FALSE}}
...
5
votes
1answer
50 views
Missing space when replacing with \regex_replace_all:nnN
How can I make \regex_replace_all:nnN not remove the space between x y?
\documentclass{article}
\usepackage{l3regex}
\ExplSyntaxOn
\cs_new:Npn \replace #1#2#3
{
\tl_set:Nn \l_tmpa_tl {#3}
...
15
votes
1answer
196 views
Defining a find and replace algorithm using LaTeX3's l3regex
I've been trying to work out the mechanics of LaTeX3's regular expression system as implemented in l3regex, but am having some difficulty understanding how/why it is acting as it is.
If I use as an ...
5
votes
0answers
140 views
Dynamically applying formatting to regular expressions [closed]
One useful tool I find in InDesign are the Grep styles. With them, one can define character styles (e.g., boldface in small caps) for whatever expression matches the grep pattern.
I know this is ...
1
vote
1answer
170 views
Regular Expression for logical implication?
I am massively unfamiliar with the usage and syntax of regular expressions so the following problem is making my brain bleed.
Background:
I am taking logical expressions, parsing them, making some ...