3 ms·
Definitely not common, but if you are parsing a text file you're going to use it a lot (say, you're writing a JS parser).
by thrdbndndn 3y ago
Definitely not common, but if you are parsing a text file you're going to use it a lot (say, you're writing a JS parser).
- marcosdumay 3y agoYou really shouldn't use a lot of regexes for parsing code. They go only on the tokenizer, if they go somewhere at all.
- thrdbndndn 3y agoAgreed, it's more about quick and dirty ad hoc capture than full-fledged parser though (like when you want to extract certain object when scraping).