Created
December 2, 2013 11:14
-
-
Save kerryChen95/7748088 to your computer and use it in GitHub Desktop.
RegExp for English & Chinese usual sentence. It was written when I change my fucking annotation style.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// RegExp for English & Chinese usual sentence, which is reuseable | |
[\s\w\。\,\、\`\:\~\`\!\@\#\$\%\^\&\*\(\)\-\_\+\=\{\}\[\]\|\;\:\"\'\<\>\,\.\/\?]*?\n | |
// Whole RegExp for change my fucking annotation style, which is: | |
// /** | |
// * balabala | |
// * foo | |
// **/ | |
// search via it and replace with $1$3 **twice**, and than there is a new annotation style: | |
// /** | |
// balabala | |
// foo | |
// **/ | |
^((\s\s\s\s)*)(?:\s{1}\*\s{1}?)([\s\w\。\,\、\`\:\~\`\!\@\#\$\%\^\&\*\(\)\-\_\+\=\{\}\[\]\|\;\:\"\'\<\>\,\.\/\?]*?\n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment