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
/
^(?:Tweak|Dev|Feature)\s+-(?:\s+(?:#?\w+|http\S*)){3,}\.?$
/
gm
Input 1
1
New
Tweak - this should be correct. Feature - my feature having a special character as #123. Dev - this should also work https://regex101.com/ https://regex101.com https://regex101.com&dev=true Dev - https://gitlab.com/-/issues/65 hello world. Feature - hello https://github.com/issues/634 issue has been accepted. Dev - this is my message. Ref projectname#123. Dev - my message having long sentence, with additional punctuators. Fllowing line should not match. Dev - https://regex101.com&dev=true Dev - ::: Dev-Hello world incorrect Tweak- it should be wrong feature - it is also incorrect
Extraction
Tweak - this should be correct. Feature - my feature having a special character as #123. Dev - this should also work https://regex101.com/ https://regex101.com https://regex101.com&dev=true Dev - https://gitlab.com/-/issues/65 hello world. Feature - hello https://github.com/issues/634 issue has been accepted. Dev - this is my message. Ref projectname#123. Dev - my message having long sentence, with additional punctuators. Fllowing line should not match. Dev - https://regex101.com&dev=true Dev - ::: Dev-Hello world incorrect Tweak- it should be wrong feature - it is also incorrect