Consider the query:
CREATE TABLE "albums" ( [AlbumId] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
[Title] NVARCHAR(160) NOT NULL )
I am trying to extract everything after the table name(albums in this case), i.e. the statement:
( [AlbumId] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, [Title] NVARCHAR(160) NOT NULL )
I want to do this because I want to duplicate the tables exactly how they were written at the time of creation. The problem is table names can have parenthesis/special characters in their name like this(also notice no whitespace after table name):
CREATE TABLE "al(b+?u(ms"( [AlbumId] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
[Title] NVARCHAR(160) NOT NULL )
They can also be without the double quotes but then they won't have any special characters like so:
CREATE TABLE albums ( [AlbumId] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
[Title] NVARCHAR(160) NOT NULL )
How do I extract the table info present after the parenthesis after table name with regex in these cases?