How to get an url in a string with regex -


I am trying to use a regex to get a URL but I remember the end of the URL here An example of a string. Containing a URL

  & lt; div class = \ "ExternalClassC7001553FFC442DD9B99547999723C7B \" & gt; http: //bazar.flow.be/Knowledge/Legal/FR/Ina/Circul/Circul BB ed. 2014 / circ_bb_p_2014_xxx.doc & lt; / Div & gt;   

I want to get it into output:

  http://bazar.flow.be/ Knowledge / Legal / FR / Mirror / Caricul / Circul For now, I use this regex which returns me: ""  
  @ "( (Https? | Ftp | file) \: // | www) [one-zA-Z0-9 \ \ -.] (/ [[One-zA-Z0-9 \ \ & amp; \ =; \ + '\  
  ((| https | | ftp | file) \: // | www.) [A-Za-z0-9 \.] - (/ [[A-Za-z0-9 \? \ & Amp; \ = \ \ \! \ \ (\) \ * \ - \ ._ ~%] *) * ([^ & lt;] +) *   

Try See it . Demo.



Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -