Regular expressions
Justin Myers (@myersjustinc)
[A-Z]\w+
\d{,3}(,\d{3})*
^\[.*?\]
^(IX|IV|V?I{0,3})$
https://xkcd.com/208/
https://github.com/jkeefe/weatherbot
https://www.flickr.com/photos/pasukaru76/3998273279/
capital letter��followed by five lowercase letters
for character in big_long_text:� value = ord(character)� if value >= 65 and value <= 90:� # Capital letter!� match = character� # TODO: Do lowercase letters follow?� else:� continue
http://bit.ly/nicar17-regex
[A-Z]\w+
\d{,3}(,\d{3})*
^\[.*?\]
^(IX|IV|V?I{0,3})$
a
Prepping pies
Peggy Schuyler
Exception
Extremely funny
Baking cakes
Yahoo! (or Altaba)
Alexander Hamilton
Regular expression
Half-witted
Does match:
Does not match:
ac
Macaroni
Self-actualization
MacGyver
Back-to-back
Galactica
Spaghetti
Safety
Tony Stark
Looking forward
Pegasus
Does match:
Does not match:
k
.
https://www.flickr.com/photos/fdecomite/8443261903/
^
$
\1
\2
\1
\2
\1
\2
\3
What now?