Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?<!\.\.\.)(?<!Dr\.)(?<=[.?!]|\.\)|\.")\s+(?=[a-zA-Z"\(])
/
g
Input 1
1
New
Should find 13 spaces as matches. It really struck a chord with me (since at the time I was living there) yet was suffering from chronic symptoms. An interesting quote is "When your life falls apart, you either grow ... or grow a tumor". (It should catch parentheses.) Here is a sentence ending with inner "quotes". "Another with outer quotes." Dr. Rankin has such an amazing story. (And it also applies when your life isn't completely falling apart yet.) Although I disagree with a lot of his views (about "rage" and TMS), I'm so thankful that he introduced me to these concepts that eliminated my pain. Fry me a Beaver. Fry me a Beaver! Fry me a Beaver? Fry me Beaver no. 4?! Fry me many Beavers... End