Replacing data in specific scenarios

I am running a scenario where I am needing to change the output of specific items in an array. The example here is as follows:

Data comes in like this and is put through an iterator

“answer”: “https://s3.us-west-1.amazonaws.com/prod.us-west-1c.app.zuperpro/attachments/a016b489-08b1-4e6b-b954-1ec11cfc3fe3/c47be374-b905-4425-b99d-6368dd325ac6.png,https://s3.us-west-1.amazonaws.com/prod.us-west-1c.app.zuperpro/attachments/a016b489-08b1-4e6b-b954-1ec11cfc3fe3/965456f1-5637-4449-b3df-7b701995ee53.png,https://s3.us-west-1.amazonaws.com/prod.us-west-1c.app.zuperpro/attachments/a016b489-08b1-4e6b-b954-1ec11cfc3fe3/68617120-cc56-4537-897f-ebcd848ed617.png

I am wanting the data to take the individual urls and replace them with this
<img src="https://s3.us-west-1.amazonaws.com/prod.us-west-1c.app.zuperpro/attachments/a016b489-08b1-4e6b-b954-1ec11cfc3fe3/5a707306-283f-4736-a745-3ec8a20b6c90.png\" height="340" width="340">

Each URL needs to look like this and in the end fall into a variable that would have this end look to push through to another api

“<img src="https://s3.us-west-1.amazonaws.com/prod.us-west-1c.app.zuperpro/attachments/a016b489-08b1-4e6b-b954-1ec11cfc3fe3/0f1d68ca-f54b-4cea-aeeb-c4360fcd5a20.png\” height="340" width="340">, <img src="https://s3.us-west-1.amazonaws.com/prod.us-west-1c.app.zuperpro/attachments/a016b489-08b1-4e6b-b954-1ec11cfc3fe3/0f1d68ca-f54b-4cea-aeeb-c4360fcd5a20.png\" height="340" width="340">,<img src="https://s3.us-west-1.amazonaws.com/prod.us-west-1c.app.zuperpro/attachments/a016b489-08b1-4e6b-b954-1ec11cfc3fe3/0f1d68ca-f54b-4cea-aeeb-c4360fcd5a20.png\" height="340" width="340">"

where the URLs are one variable and all hace the img tag and each url is individually seperated by a comma.

Hello @Zachary_Castillo and welcome to the Make Community!

Unfortunately, your post may not have posted as expected and is very difficult to read.
Could you please revise?
Please note that you can paste photos into the editor and they will upload automatically, no need to host them yourself.

Thanks!

Welcome to the Make community!

1. This forum might have or already changed your text

When pasting text into this forum, you should format the example text using the rich-text editor, otherwise the forum software might modify the displayed text, and you might get incorrect answers from others because of it.

Some things this forum software might do to mangle your text:

– remove extra spaces (which may be necessary)
– convert links to titles (when copied is incorrect)
– incorrect joined links
– convert single and double quotes to smart angled quotes (“ ”)
– emojis
– etc.

This interferes with you receiving correct answers, because it:

– makes JSON invalid (you can verify when copy-paste into https://jsonformatter.org)
– makes incorrect text examples when we need to build a pattern for text parsing

2. To prevent this in future, please format text in code blocks

These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

3. You might need to re-copy the original text

Once the post has been submitted, it’s too late to format it since it’s already butchered, and you need to make a re-copy of the text, and format it before submitting the forum post.

Please let us know once you have corrected the issue. This will avoid others potentially providing wrong answers based on incorrect text in your question.

Thank you!

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.