My Answer in Regex Golf

Warm Up

My Answer in Regex Golf
Answer: foo Point(3)

Anchors

My Answer in Regex Golf
Answer: k$ Point(2)

It never ends $ not allowed

My Answer in Regex Golf
Answer: fu\b Point(4) 或者 u\b

Ranges

My Answer in Regex Golf
Answer:[a-f][a-f][a-f][a-f] Point(20)

Backrefs

My Answer in Regex Golf
Answer: (...).*\1 Point(9)

Abba

My Answer in Regex Golf
Answer: ^(?!.*(.)(.)\2\1) Point(17)

A man, a plan

My Answer in Regex Golf
Answer: ^(.)(.).*\2\1$

Four

My Answer in Regex Golf
Answer: ([aioe]).\1.\1.\1

Order

My Answer in Regex Golf
Answer: ^[a-m][c-o][c-t][e-t][i-z][n-z]?$

Prime

My Answer in Regex Golf
Answer: ^(?!(..+)\1+$)

持续更新...

上一篇:[nRF51822] 4、 图解nRF51 SDK中的Schedule handling library 和Timer library


下一篇:吐血分享:QQ群霸屏技术教程(利润篇)