4 ms·
I used this strategy for implementing a regex engine. I wanted to completely imitate the Lua pattern implementation, so I generated random patterns, ran them on
by PhilipRoman 3y ago
I used this strategy for implementing a regex engine. I wanted to completely imitate the Lua pattern implementation, so I generated random patterns, ran them on random strings and compared the results.
It was very pleasant to work with such a system. Nowadays I would probably fuzz the patterns with AFL somehow.