It is currently nested within an array. It is represented as [“link here”]. So it sits within the square brackets and the semi colons. I need it out of there. But every time I pull its array value, it keeps giving me “uploads/4403bfa7-5abe-421a-a738-7f916e5549fc/Descriptiveart-flash-02.jpg”. I do not want that. I want the full url. just without the square brackets and semi colons
That appears to be a plain string, so a regex can work.
Since it’s a URL, we can assume that we can replace all occurrences of ", [ and ] since any occurrences within the string would normally have been encoded.
Try this approach: replace via regex all occurrences of these three characters. {{replace(2.originalLink; "/[\[""\]]/g"; emptystring)}}
Thanks for all that. I tried your method and it was still not working strangely so what I did rather was use the Open AI module to just remove those values and it returned successfully
Instead of performing this replacement: {{replace(2.originalLink; "/[\[""\]]/g"; emptystring)}}
Do this replacement: {{replace(2.originalLink; "/[\[“\]]/g"; emptystring)}}
The reason is that the double quote in your example “ is slightly different than a regular double quote ", at least what you pasted in your original post