Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Split long paragraph to segments within specified length
Open Workspace
PCRE (Legacy)
Match
Created 2019-08-08 05:31
0
Regular Expression
/
(?:
(?!
.
{1,30}
(?:
\.
\s
|
\.
$
|
\?
\s
|
\?
$
|
;
\s
|
;
$
|
。
|
?
|
;
)
)(?:
.
{30}
)
)
|
(?:
.
{1,30}
(?:
\.
\s
|
\.
$
|
\?
\s
|
\?
$
|
;
\s
|
;
$
|
。
|
?
|
;
)
)
/
gs
Description
Try to split at the longest point whereas sentences ended.
Submitted by
Anonymous