Powershell regex question involving balancing parenthesis -


How can I change a table column definition in an array of columns using regex without taking formatting in the account? . How do I break the confusion on "," as they can appear in the Data Type definition part (between matching brackets)

Sample Input:

Create table test (District VARCHAR (3) character set not Latin CASESPECIFIC, CUSTOMER_ACCOUNT decimal (8.0), CUSTOMER_SUB_ACCOUNT decimal (3,0), SERVICE_SEQ_NUM decimal (7.0), EFFECTIVE_DATE TIMESTAMP (0), SUBSCRIBER_SEQ_NUM decimal (7.0))

Thank you!

Friedrich

After

Traditionally not able to have regular expressions for balanced brackets Testing / matching but many libraries have made extensions which allow some recursion. Like with its "R" quantifiers? And Microsoft has added "" you can find an example of that feature to match

(...)

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -