I'm trying to change HTTP response body with Charles Proxy using rewrite tool / regex? The response is a JSON.
So part of the returned response JSON body is:
"unavailablePosts": ["AA", "BB"],
I believe there are some linebreaks in between the values, and to match them you need to add
\s* (zero or more whitespaces) around
: and use
[\s\S]*? (any 0+ chars but as few as possible as
*? is a lazy quantifier) to match the substring between