So the problem I am facing is more of logical reasoning which I am unable to figure out for some reason, it is Regex and coding related.
This is a pattern I use to extract links from a document;
http(s)?://([\w+?\.\w+])+([a-zA-Z0-9\~\!\^\&\*\(\)_\-\=\+\\\?\/\.\:\;\'\,]*)?
It took me a while to compile it together, but it works really well, extracts links from all the document, however my issue is, if two links are connected, it extracts them as a single match.
I tried placing "http" at the end of regex pattern to supposedly end the search, but that didn't work. For example, two links as follow show up as one single match (They are found like that in the original document);
http://www.preemptive.com/dotfuscator/dtd/dotfuscatorMap_v1.0.dtd/dotfuscatorMap_v1.0.dtdhttp://www.preemptive.com/dotfuscator/dtd/dotfuscatorMap_v1.1.dtd/dotfuscatorMap_v1.1.dtd
Regex code if you want to take a look;
Dim regexFunc As New Regex("http(s)?://([\w+?\.\w+])+([a-zA-Z0-9\~\!\^\&\*\(\)_\-\=\+\\\?\/\.\:\;\'\,]*)?", RegexOptions.IgnoreCase)
Dim matches As MatchCollection = regexFunc.Matches(_dataLoaded.ToString)
For Each x As Match In matches
'// A match has been found, can contain one or more links connected.
Next
Question: How to have it so when if a match has multiple links, it separates each of links so I could store each of them in.. say an array? Thanks.