0

I have a String which contains multiple url inside like: "https://example.org,http://example.net". The URL will be splited by the comma sign ",".

Normally I can split them using the syntax: split("\\s*,\\s*") but the url might contain the comma sign so I would like to split them when I get the ",http" syntax in the URL, so I use: split("\\s*,http\\s*"), but then from my second URL the "http" will be get rid of my URL string.

Can any one give me a hint to split the URL here in my string? Thank you so much!

Bali
  • 705
  • 4
  • 13
  • 21

0 Answers0