Skip to content

Instantly share code, notes, and snippets.

@darrenxyli
Forked from CarlLee/punctuation.js
Created August 15, 2015 16:07
Show Gist options
  • Save darrenxyli/5d57ba69fb8f73d27fb2 to your computer and use it in GitHub Desktop.
Save darrenxyli/5d57ba69fb8f73d27fb2 to your computer and use it in GitHub Desktop.
Match punctuation in English/Chinese sentenses
([\[\]\,.?"\(\)+_*\/\\&\$#^@!%~`<>:;\{\}?,ಥ」╮ง╯▽╰←╭┴┴≡@ノ→¯>「ヽ・。∠̀∀́~◡°·Д´!◑▂◐—๑•ั็ω•็ั๑┻━┻¥ノ:……()+'{}“”【】、|《》]|(?!\s)'\s+|\s+'(?!\s))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment