meanderings

more felix cohen ☞


JSTN: tylr: Can’t believe I’ve never thought of this before. A regular... →

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…

— 3 months ago with 51 notes
  1. xrath reblogged this from codingjester
  2. meanderingss reblogged this from jstn
  3. ridingwithstrangers reblogged this from tylr
  4. crankyasshuladancer reblogged this from tylr
  5. tylr said: Thanks!
  6. magicrob reblogged this from jstn
  7. codingjester reblogged this from tylr and added:
    wonderful regex, my friends and I use ~ instead of -. So modified regex is: /[u|B|8]{1,2}[=-]+[d|D|B][-.\~]*/
  8. jstn reblogged this from tylr
  9. tylr posted this
RSS     /      Archive     /      Random