Skip to content

Instantly share code, notes, and snippets.

View daipeihust's full-sized avatar
🎯
Focusing

Steve Dai daipeihust

🎯
Focusing
View GitHub Profile
@daipeihust
daipeihust / punctuation.js
Last active April 11, 2017 01:31 — forked from CarlLee/punctuation.js
Match punctuation in English/Chinese sentenses
var re = /([\[\]\,.?"\(\)+\-_*\/\\&\$#^@!%~`<>:;\{\}?,。·!¥……()+{}【】、|《》]|(?!\s)'\s+|\s+'(?!\s))/ig;
content.replace(re, '');