? ARCHIVE ART ♫ TUNES DESIGN FILM R.W.S WORDS THATSHER ABOUT
tylr:
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"]