Skip to content

Instantly share code, notes, and snippets.

@jcxplorer
Created March 1, 2013 22:53
Show Gist options
  • Save jcxplorer/5068603 to your computer and use it in GitHub Desktop.
Save jcxplorer/5068603 to your computer and use it in GitHub Desktop.
Username search Regex tested to work with Ruby and iOS's NSRegularExpression
/(?<=^|[^a-z0-9_])@([a-z0-9_]+)/i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment