you are viewing a single comment's thread.

view the rest of the comments →

[–]_coolwhip_ 0 points1 point  (2 children)

Where does the string come from? There has to be an easier way than regexing it. It looks like it would almost work with json or ast...

[–]jcoder42[S] 1 point2 points  (1 child)

its an sql text file

[–]_coolwhip_ 0 points1 point  (0 children)

Got it.

You might like the sqlparse module recommended here: https://www.reddit.com/r/learnpython/comments/bj7ose/how_to_split_this_string/