Skip to content

Instantly share code, notes, and snippets.

@sim642
Created November 24, 2014 21:06
Show Gist options
  • Save sim642/9761d3a04842fde4b268 to your computer and use it in GitHub Desktop.
Save sim642/9761d3a04842fde4b268 to your computer and use it in GitHub Desktop.
Binary number divisible by 3
^(0*(1(01*0)*1)*)*$
^(0|1(01*0)*1)*$
http://stackoverflow.com/a/3253053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment