Skip to content

Instantly share code, notes, and snippets.

@zedtux
Created April 5, 2011 04:02
Show Gist options
  • Save zedtux/902997 to your computer and use it in GitHub Desktop.
Save zedtux/902997 to your computer and use it in GitHub Desktop.
Check string contains only group of two characters
regex: ^([A-Z]{2}\b\s*)+$
good_string = "AB CD EF GH"
bas_string = "AB CD EFE GH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment