My Answer in Regex Golf

Warm Up


Answer: foo Point(3)

Anchors


Answer: k$ Point(2)

It never ends $ not allowed


Answer: fu\b Point(4) 或者 u\b

Ranges


Answer:[a-f][a-f][a-f][a-f] Point(20)

Backrefs


Answer: (...).*\1 Point(9)

Abba


Answer: ^(?!.*(.)(.)\2\1) Point(17)

A man, a plan


Answer: ^(.)(.).*\2\1$

Four


Answer: ([aioe]).\1.\1.\1

Order


Answer: [1][c-o][c-t][e-t][i-z][n-z]?$

Prime


Answer: ^(?!(..+)\1+$)

持续更新...


  1. a-m ↩︎

posted @ 2017-12-05 12:07  BUTTERAPPLE  阅读(454)  评论(0编辑  收藏  举报