Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.
roberutsu
Javascript? More like Regex:
(?!(?!^0*+(?=(\d*?)((?:(?=\d+\ 0*+(\d*?)(\d(?(4)\4))\ 0*+(\d*?)(\d(?(6)\6))$)\d)++)\ )(?=(?(?!\1(?:(?=\d+\ 0*+\3((\g{-2}?+)\d))(?=\d(\d*\ 0*+\3\g{-2}))(?=0\g{-1}9|1\g{-1}8|2\g{-1}7|3\g{-1}6|4\g{-1}5   |5\g{-1}4|6\g{-1}3|7\g{-1}2|8\g{-1}1|9\g{-1}0)\d)*+(?=\d(\d*\ 0*+\3\g{-3}?+))(?=[5-9]\g{-1}[5-9]|1\g{-1}9|2\g{-1}[89]|3\g{-1}[7-9]   |4\g{-1}[6-9]|6\g{-1}4|7\g{-1}[34]|8\g{-1}[2-4]|9\g{-1}[1-4]))(?=\d+\ \d+\ 0*+\1\3\6$)|(?(?!.*+\3)\d+\ )(?=\d*?(\2|\4)(\ .*?0*+)\d+$)(?(?=9*\11\ )(?:9(?=\d*?\12[1](\g{-1}?+0)))*?(?=\11\ )\11\12[1]\g{-1}?+\6$|(?:(\d)(?=\d*\12(\g{-1}?+\g{-2})))*+(?=\d(\d*\12\g{-2}?+))(?=0\g{-1}1|1\g{-1}2|2\g{-1}3|3\g{-1}4|4\g{-1}5|5\g{-1}6|6\g{-1}7|7\g{-1}8|8\g{-1}9)\d(?:9(?=\d*\12\g{-2}?+\d(\g{-1}?+0)))*?(?=\11\ )\11\12\g{-3}?+\d\g{-1}?+\6$)))\1(?:(?=(\d)\d*\ 0*+\3((\g{-2}?+)\d)\d*\ 0*+\5((\g{-2}?+)\d))(?(?!\18(?:(?=\d+\ 0*+\3\19((\g{-2}?+)\d))(?=\d(\d*\ 0*+\3\19\g{-2}))(?=0\g{-1}9|1\g{-1}8|2\g{-1}7|3\g{-1}6|4\g{-1}5   |5\g{-1}4|6\g{-1}3|7\g{-1}2|8\g{-1}1|9\g{-1}0)\d)*+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