high res theme by jstn' />
I live in Brooklyn, NY with Anna and Hubble+Ollie. I perform music with French Miami, engineer software for Tumblr and co-created Views.fm.
You can ask me something.
Can’t believe I’ve never thought of this before. A regular expression to match penises.
/[u|B|8]{1,2}[=\-]+[d|D|B|b][\-\.\~]*/
Here’s a ruby example:
ruby> "Eat B--b a bag of uu===D! 8===D---...".scan(/[u|B|8]{1,2}[=\-]+[d|D|B][\-\.\~]*/)
=> ["B--b", "uu===D", "8===D---..."]
Run against this text:
Cray twee butcher 8===D photo booth, trust uu---D---... fund mlkshk post-ironic seitan keytar raw denim craft beer blog art party. Vegan 8-bit 8---b helvetica, organic banh mi banksy single-origin coffee. Occupy craft beer leggings, messenger bag tumblr small batch odd future cliche fixie. B==========D Pinterest fap vegan, trust fund banksy locavore keffiyeh freegan kogi odd future high life tumblr portland single-origin coffee. Cliche hoodie cray etsy. Seitan beard vice artisan pork belly, truffaut squid gastropub vegan mixtape before they 8---D--- sold out. High life brunch odd future messenger bag, uu==b cosby sweater post-ironic swag locavore thundercats sriracha dreamcatcher semiotics.
Would result in
["8===D", "uu---D---...", "8-b", "8---b", "B==========D", "8---D---", "uu==b"]
EDIT: Used pre tags. Updated to support squigglyjizz.wonderful regex, my friends and I use ~ instead of -. So modified regex is: /[u|B|8]{1,2}[=-]+[d|D|B][-.\~]*/
loading…