Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 20th, 2017
72
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
function sentencesArray (text) {
return text
.replace(/([\s,]?[\d,-]?([A-Z][a-z]{3,}|[a-z]{2,}|[0-9])[.?!…\n]+([\s\n"]))/g, '$1|')
.split('|')
.map(s => s.trim())
.filter(s => s)
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 5 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 24 min ago | 0.39 KB
Untitled
HTML | 26 min ago | 0.07 KB
Untitled
PHP | 27 min ago | 0.49 KB
input_select card
YAML | 38 min ago | 2.25 KB
users
PHP | 52 min ago | 3.99 KB
Powershell - Example of mysqldump
PowerShell | 52 min ago | 1.03 KB
search
PHP | 53 min ago | 1.26 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!