'StringExtractPaths by Jmon:
'Extracts network paths from a string
'and returns all the separate paths in a list.
Private Sub StringExtractPaths(s As String) As List
Dim lst As List : lst.Initialize
Dim ptrn As String = "(?i)((?:(?:https?|rtp|mms|rtsp|file|ftps?)\:)?[\\|\/]{2}[\w-_]*[\w\\\/?&=.~;\-+!*_#%]*)|([a-z]:[\\\/][\w\.-_\\\/]*)|(w{3}\.[\w\\\/?&=.~;\-+!*_#%]*)"
Dim Matcher As Matcher = Regex.Matcher(ptrn, s)
Do While Matcher.Find
lst.Add(Matcher.Match)
Loop
Return lst
End Sub