There are many peculiarities in our line of work. This here is an attempt to parse XML with regular expressions. You can look at it like it's a regex deep dive, but I prefer to just stare and silently become horrified.
#regex #xml
#regex #xml
flapenguin.me
Parsing XML with Regular Expressions | flapenguin.me
Someone told me that I can't parse XML with regexes, and I just had to prove them wrong.
Madness again! Regular expression (rather simple, elegant even!) to check whether a number is prime or not. Number has to be converted to a bunch of 1s (e.g. 5 -> 11111).
#regex #math
#regex #math