So i have a string that contains snowflake columns and i want to split the string to each column, I’m trying to use Regex to do this as it split string won't work in this situation. The string pattern i have tried is
string pattern = @"([^\s]*\s[^\s]*),"
though this pattern splits after the second consecutive space. Im not sure how to split it just after the alias. I am also using .net core 3.1. Any help would be appreciated..
current snowflake datacolumn string:
string columns = "nvl(u.\"Country\",'#N/A') \"Country\",u.\"CreatedDate\" \"CreatedDate\",nvl(u.\"Email\",'#N/A') \"Email\",u.\"LastModifiedDate\" \"LastModifiedDate\",nvl(u.\"Name\",'#N/A') \"Name\"";
expected output:
nvl(u."Country",'#N/A') "Country"
u."CreatedDate" "CreatedDate"
nvl(u."Email",'#N/A') "Email"
u."LastModifiedDate" "LastModifiedDate"
nvl(u."Name",'#N/A') "Name"


