Jump to content

Extract MP3 URLs from a text


b0x4it
 Share

Recommended Posts

I figured it out:

#include <Array.au3>
#include <String.au3>
$Start = "http://"
$End = ".mp3"
$String  = ClipGet()
;Sleep(500)
$Array = _StringBetween($String, $Start, $End)
; remove other http:// strings in between
For $i=0 to UBound($Array)-1
While StringInStr($Array[$i], "http://")
  $tmpArray = _StringBetween($Array[$i] & ".mp3", $Start, $End)
  $Array[$i]=$tmpArray[0]
WEnd
Next
; add http:// and .mp3 to make the urls complete
For $i=0 to UBound($Array)-1
$Array[$i]="http://" & $Array[$i] & ".mp3"
Next
_ArrayDisplay($array)

there should be some shorter codes as well :D

thanks for all your helps

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...