Answers for "regexp extract url from html"

1

use regex to get urls from string

/(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/igm
Posted by: Guest on November-04-2020
0

extract html tag using regex

(<span>|<a href="#">|<div onclick="callMe\(\)">)(.*)(</span>|</a>|</div>)
Posted by: Guest on September-17-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language