#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?mi)(?:(https?):\/\/)?(?:(?:www|m|api)\.)?(soundcloud\.com|snd\.sc)\/+([a-zA-Z0-9\-\.]+\/*[a-zA-Z0-9\-\.]*\/*[a-zA-Z0-9\-\.]*)"
Local $sString = "https://soundcloud.com/deejay-la-x" & @CRLF & _
"https://soundcloud.com/deejay-la-x/my-christmas-mix-with-tarmac" & @CRLF & _
"sdasdddd" & @CRLF & _
"https://soundcloud.com/golden-rose-428706194/drip-vol2" & @CRLF & _
"https://soundcloud.com/karyomusic/karyo-my-neck-lick-it?utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing" & @CRLF & _
"https://soundcloud.com/rnjonesnc/sets/30-flights-of-elevation" & @CRLF & _
"https://on.soundcloud.com/5dTNx" & @CRLF & _
"<iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/923619058&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/kaytranada" title=""KKAAYYTTRRAA"" target="_blank" style="color: #cccccc; text-decoration: none;">"KKAAYYTTRRAA"</a> ยท <a href="https://soundcloud.com/kaytranada/love-is-stronger-than-pride-kaytra-edit" title="LOVE IS STRONGER THAN PRIDE (KAYTRA EDIT)" target="_blank" style="color: #cccccc; text-decoration: none;">LOVE IS STRONGER THAN PRIDE (KAYTRA EDIT)</a></div>" & @CRLF & _
"" & @CRLF & _
"" & @CRLF & _
"" & @CRLF & _
"" & @CRLF & _
""
Local $aArray = StringRegExp($sString, $sRegex, $STR_REGEXPARRAYGLOBALFULLMATCH)
Local $aFullArray[0]
For $i = 0 To UBound($aArray) -1
_ArrayConcatenate($aFullArray, $aArray[$i])
Next
$aArray = $aFullArray
; Present the entire match result
_ArrayDisplay($aArray, "Result")
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for AutoIt, please visit: https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm