Skip to content

Instantly share code, notes, and snippets.

@cellularmitosis
cellularmitosis / README.md
Last active December 2, 2023 02:30
Matching a string literal using regex

Blog 2019/9/1

<- previous | index | next ->

Matching a string literal using regex

When implementing a regex-based lexer / tokenizer, coming up with a regex which matches string literals can be a bit tricky.