Skip to content

Instantly share code, notes, and snippets.

@serihiro
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serihiro/2e1e29d5a22cc473497b to your computer and use it in GitHub Desktop.
Save serihiro/2e1e29d5a22cc473497b to your computer and use it in GitHub Desktop.
メアドとか電話番号とか入れたらダメよ〜ダメダメってやるための正規表現
/[0-90-9a-za-zA-ZA-Z..__ー―]+(@|@|あっと|アット|アット)[0-90-9a-za-zA-ZA-Z__ー―]+(\.|.)[0-90-9a-za-zA-ZA-Z..__ー―]+/
/[\d0-9]{2,4}(-|−|ー|―)[\d0-9]{2,4}(-|−|ー|―)[\d0-9]{4}/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment