Make an arrays of links contained in one big string
===

I have a big string ( a html code from web page).

Now the problem is how to parse the links to images.

I want to make an array of all the links to images in that web page.

I know how to do this i java but I do not know how to do the parse strings and do a string  manipulations in shell. I know there are many tricks and I guess this can be easy done.


in the end I want to get something like this


    #!/bin/bash
    
    # fill this with the links to image somewhow (.jpg and .png only)
    LINKS=("www.asd.com/asd1.jpg" "www.asd.com/asd.jpg" "www.asd.com/asd2123.jpg")
     
    # get length of an array
    tLen=${#LINKS[@]}
     
    
    for (( i=0; i<${tLen}; i++ ));
    do
      echo ${LINKS[$i]}
    done


Thanks, for the responses you saved me days of frustrations


