Parsing from list view help how to get piece of element starting with src and ending with "

can you help me plz how ??? i have alistview contain alot of elements take that in your mind >>> i think it will be made withh loop to fetch all src in each element right?

Split at <figure>

Then for each item in the list split at src="

Then from the second item in that list split at "> alt

Add result to list.

Remove any empty list items.
.
.
Or something like that.

if failed also :frowning:

<h2>first </h2>
<h3>second</h3>

<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="700" height="450" data-id="31209" src="img1.com" alt="" class="wp-image-31209"/></figure>

<figure class="wp-block-image size-large"><img decoding="async" width="700" height="450" data-id="31210" src="img2.com" alt="" class="wp-image-31210"/></figure>
</figure>

1 Like




(draggable)

2 Likes

thank you , you really survived me

1 Like