Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
\\n.*|[^\w\s]+
"
g
Input 1
Books are on the table\nPick them up Pens are in the bag\nBring them Cats are roaming around Dogs are sitting Pencils, erasers, ruler cannot be found\nSearch them Laptops, headphones are lost\nSearch for them
Extraction
Books are on the table\nPick them up Pens are in the bag\nBring them Cats are roaming around Dogs are sitting Pencils, erasers, ruler cannot be found\nSearch them Laptops, headphones are lost\nSearch for them