Check If a String Contains a URL Using Java

Publicado em: 04 Março 2020
no canal de: Max O'Didily
3,516
43

Check If a String Contains a URL Using Java

Greetings, I'm back with another tutorial where we check if a string contains a valid url which could be handy for input validation, checking for links for a twitch bot or Minecraft server or anything else. This code could also be modified to check if a string is a valid url. I hope this quick tutorial helps!


Here is the regex I used: ((http:\\/\\/|https:\\/\\/)?(www.)?(([a-zA-Z0-9-]){2,}\\.){1,4}([a-zA-Z]){2,6}(\\/([a-zA-Z-_\\/\\.0-9#:?=&;,]*)?)?)



 Why not subscribe to keep notified when I upload?
https://tinyurl.com/SubMaxODidily

Check If a String Contains a URL Using Java


Nesta página do site você pode assistir ao vídeo on-line Check If a String Contains a URL Using Java duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Max O'Didily 04 Março 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,516 vezes e gostou 43 espectadores. Boa visualização!