Cut string from symbol and till another symbol

Here is example of string

**[ma]={"sessionType":"installations","phoneModel":"ADDITIONAL apple","comment":"test2 ADDITIONAL"}
        ADDITIONAL | installations | ADDITIONAL apple | test2 ADDITIONAL`**

I wanna to get - {"sessionType":"installations","phoneModel":"ADDITIONAL apple","comment":"test2 ADDITIONAL"}

Now I use .replace but can’t find necessary regex.


Ответы (0 шт):