Pas de Code
76 subscribers
106 photos
1 file
402 links
What I cannot create, I do not understand.

DM: @alexey_mileev
Original channel in RU: @devballet
Twitter: twitter.com/pasdecode_
Download Telegram
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
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