[Solved] Parse JSON String with regular expression in Python [closed]


I’ve came up with this regex, which might work in most cases but not all. Since you said you might have broken regex, it’s hard to know what the output will look like. Anyways, this might work fine for your needs.

r'"intent_path":(?: ?)"([\w\s,]+)"'

You can test more cases here

1

solved Parse JSON String with regular expression in Python [closed]