I have the following in an array:
" <div class=\"a-row\">",
"<div class=\"a-section aok-relative s-image-square-aspect\">",
Here how to loop through each line to get the "Sportscar-Buy" from the html in that array?
from the line alt I need to extract that text alone?
Hi there. So, your array looks like html so I'm wondering where it came from and if it might be easier to work with that in its original format?
But, to answer your question I used a split() function like this one to parse out the data you want (swap out the bold bits with the dynamic value of your 'array':
Here's a video on the function that will get you started on how it works:
Keep us posted.
If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
No need to loop through the array at first - use a Filter array instead to filter out items with "alt=" - so you only have to work with them.
Now loop through each array item from the Filter array and extract the text using an expression - nearly like @edgonzales wrote you.
Extracting the text using expression:
Hope this helps you on the way. Kind regards, John
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Many congratulations to the Season 1 2021 Flownaut Crew!
Check out our new profile badges recognizing authored solutions!
Check out the community blog page where you can find valuable learning material from community and product team members!