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
/
(constraint\s+\w+\s+)*primary\s+key\s+(((on\s+conflict\s+\w+).*?\s+(autoincrement))|((autoincrement).*?\s+(on\s+conflict\s+\w+)))
/
gmi
Input 1
1
New
CREATE TABLE leagues_new(id INTEGER PRIMARY KEY ON CONFLICT ABORT AUTOINCREMENT, name TEXT, drafttype INTEGER, scoringtype INTEGER, roundvalues INTEGER, leaguetype TEXT, salary INTEGER, benchplayers INTEGER) PRIMARY KEY ON CONFLICT ABORT present and first, AUTOINCREMENT present and second PRIMARY KEY AUTOINCREMENT present and first, ON CONFLICT ABORT present and second PRIMARY KEY ON CONFLICT ABORT pop present, AUTOINCREMENT not present PRIMARY KEY AUTOINCREMENT present, ON CONFLICT ABORT not present PRIMARY KEY ON CONFLICT ABORT not present, AUTOINCREMENT not present.