News for hackers. Stuff that matters.
Re:Re2c: A free and open-source lexer generator for C and C++ by jules on Saturday March 02, 2019 @04:06AM (#19288375)
Sure, and that's exactly what re2c does too. It lets you do a match on multiple regexes:

  regex1 { code that executes if regex1 matches }
  regex2 { code that executes if regex2 matches }
  regex3 { code that executes if regex3 matches }
Re:Re2c: A free and open-source lexer generator for C and C++ by ori_b on Saturday March 02, 2019 @04:45PM (#19291352)
Yes, compiled into source code, which doesn't let you change the set of regexes at runtime.