3 ms·
I recently had to parse string-based temperature readings coming in over UART (e.g. 25.4C), and I forgot to include the leading minus character in my regular ex
by pgt 8y ago
I recently had to parse string-based temperature readings coming in over UART (e.g. 25.4C), and I forgot to include the leading minus character in my regular expression. I think generative testing is a great option here if you run the regex "in reverse".