Skip to content

Instantly share code, notes, and snippets.

Avatar

Bee Hudson gdog2u

View GitHub Profile
View day_3_pt_2.pl
#!/usr/bin/perl
use warnings;
use strict;
#####
# Solution works for demo, but not for input
#####
our @inputs = get_inputs();
View gist:fbdc75a1e2847a3ce5ee95d78d9913fa
/([jJ](anuary|u(ly|ne))|[mM]a(y|rch)|[fF]ebruary|[aA](pril|ugust)|(([nN]ov|[sS]ept|[dD]ec)em|[oO]cto)ber)/
View gist:b0326d533d91865bb5813e8d64044991
^(?:[a-zA-Z0-9!#$%&'*+\-\/\=?^_`{|}~]|\.(?!\.)){1,64}@(?:(?:[a-zA-Z0-9\-]){1,63}\.(?!\.)){1,4}(?:[a-zA-Z0-9]{2,12})$
View gist:27ef7746ff643f9a748c08ab59f2759a
^(?:[+]?\d[-\s]?)?(?:(?:[(][2-9][0-8][0-9][)]|[2-9][0-8][0-9])[-\s]?)?[2-9]\d{2}[-\s]?\d{4}$