I am not that good in regex. What would be the proper configuration to do
the following;

   1. Remove backslash from text.
   2. Replace "{ with {
   3. replace }" with }

Basically I need to clean escaped JSON.

Like before:

 
"{\"hashtags\":[{\"text\":\"Apple\",\"indices\":[45,51]}],\"urls\":[{\"url\":\"\",\"expanded_url\":\"\",\"display_url\":\"owler.us/abdLas\",\"indices\":[64,87]}],\"user_mentions\":[],\"symbols\":[{\"text\":\"AAPL\",\"indices\":[88,93]}]}",

after:

{"hashtags":[{"text":"Apple","indices":[45,51]}],"urls":[{"url":"","expanded_url":"","display_url":"owler.us/abdLas","indices":[64,87]}],"user_mentions":[],"symbols":[{"text":"AAPL","indices":[88,93]}]},

Thanks in advance.
  • ReplaceText process... Igor Kravzov

Reply via email to