User Tools

Site Tools


regex.alf.nu

http://regex.alf.nu/

Plain strings

foo (207 points)

Anchors

k$ (208 points)

Ranges

^[a-f]+$ (202 points)

Backrefs

(.{3}).*\1 (200 points)

Abba

^(?!.*(.)(.)\2\1) (193 points)

A man, a plan

^(.)(.).*?\2\1$ (175 points)

Prime

^(?!(..+)(\1)+$) (284 points)

Four

(.)(.(\1)){3} (197 points)

Order

^.{5}[^e]?$ (199 points)

Triples

^[378][12479]|00($|[369]|1[25])|55|2[347] (589 points)

Glob

ai|c$|^p|[bcnrw][bnopr] (397 points)

Balance

^(<(<(<(<(<(<<>>)*>)*>)*>)*>)*>)*$ (286 points)

Powers

^(x|(xx){1,9}|x{32}|(x{64})+)$ (80 points)

(I'm too lazy to deal with the following two)

Long count

0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 101.{6} 1101 1110 1111 (198 points)

Long count v2

0.{9}10 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110.{4}1$ (197 points)
regex.alf.nu.txt · Last modified: 2017/01/05 06:53 by felixonmars