Positive lookbehind and lookahead in Sublime Text 2
Find all instances of double space not preceded by space (everything between the pipes excluding the pipes):
|(?<=[^\s]) |
Find all spaces, followed by a question mark, a period or an exclamation mark:
| (?=(\?|\.|!))|
Written by Alex Popov
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Regex
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#