Skip to main content

Questions tagged [regex]

A regex (a regular expression, regexp) is a textual form for specifying sets of strings in a regular language, often used for matching against. Use this tag for questions about regex as it pertains to developing/implementing a programming language, including for constructs that are not strictly regular such as backreferences. General regex questions are off-topic.

0 votes
1 answer
135 views

In a parallel effort of me implementing the C langauge, I'm also implementing the Shell and Utility section (volume actually) of the POSIX standard, to ensure that I have everything I need to compile ...
DannyNiu's user avatar
  • 467
1 vote
1 answer
174 views

All tokens in parsing source code must be unambiguous. Regular expressions are almost always used for lexing, but there is one problem in my mind. Given the regex: ...
DannyNiu's user avatar
  • 467
27 votes
5 answers
3k views

While regex size blows up when defining a function that take two regexes, and return one regex representing their complement/intersection (see Succinctness of the Complement and Intersection of ...
Marisa Kirisame's user avatar
2 votes
1 answer
119 views

When you write regulair expression (regex) engines, how do you tell .... if ? means zero or one ...or if... ...
Samuel Muldoon's user avatar
21 votes
6 answers
3k views

Most languages that have regex have a regex parsing library that interprets the regex at runtime and matches them to strings. I am a fan of eliminating as much runtime overhead as possible, and as ...
CPlus's user avatar
  • 10.5k