Hi everybody!
I am trying to enhance SQL syntax highlighter. In particular, our model-to-sql tool generates files like the one below.
We consider '-- Table: [Chat].[tblChatRoom] ---' as a function beginning. So I want UE to extract function name from this string.
The problem is that I would like displayable function name to be in the form of 'Chat.tblChatRoom' that is with square brackets removed.
So far I was only able to extract table name with this:
However without schema prefix it is of little use because of ambiguities.
Source sample:
Can anybody suggest a solution?
Thank you
PS: I'd be grateful for pointing me to the reference of UE regex dialect.
I am trying to enhance SQL syntax highlighter. In particular, our model-to-sql tool generates files like the one below.
We consider '-- Table: [Chat].[tblChatRoom] ---' as a function beginning. So I want UE to extract function name from this string.
The problem is that I would like displayable function name to be in the form of 'Chat.tblChatRoom' that is with square brackets removed.
So far I was only able to extract table name with this:
Code: Select all
/TGFindStr = "-- Table: ^[[a-zA-Z_]+^]^.^[^([a-zA-Z_]+^)^]"
Source sample:
Code: Select all
-- -----------------------------------------------------------------------------
-- Table: [Chat].[tblChatRoom] -------------------------------------------------
-- -----------------------------------------------------------------------------
CREATE TABLE [Chat].[tblChatRoom]
(
...
)
-- -----------------------------------------------------------------------------
-- Table: [Dbo].[tblUser] ------------------------------------------------------
-- -----------------------------------------------------------------------------
CREATE TABLE [Dbo].[tblUser]
(
...
)
Thank you
PS: I'd be grateful for pointing me to the reference of UE regex dialect.