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
/
^([^;]+);\s*$
/
mg
Input 1
1
New
Test;Something should be correct; this one could be correct with some spaces after; Ok; Not ok; --nothing to do here Is this ok without the semicolon? ^-- Probably not; ; ^-- What about a line just with a semicolon?; This char ";" is not allowed!;