or, if I can use backreferences (wasn't clear if grouping meant _only_ grouping):
/^(1[01]*1|0[01]*0)$/
/^([01])[01]*\1$/
-dlc
In reply to RE: Fun Regex Exercise
by dchetlin
in thread Fun Regex Exercise
by japhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |