How to get an url in a string with regex -
i'm trying utilize regex url miss end of url here illustration of string containing url
<div class=\"externalclassc7001553ffc442dd9b99547999723c7b\">http://bazar.flow.be/knowledge/legal/fr/ina/circul/circul bb adm. 2014/circ_bb_p_2014_xxx.doc</div>
i've in output:
http://bazar.flow.be/knowledge/legal/fr/ina/circul/circul bb adm. 2014/circ_bb_p_2014_xxx.doc
for now, utilize regex homecoming me: "http://bazar.flow.be/knowledge/legal/fr/ina/circul/circul"
@"((https?|ftp|file)\://|www.)[a-za-z0-9\.\-]+(/[a-za-z0-9\?\&\=;\+!'\(\)\*\-\._~%]*)*"
thanks solution
((https?|ftp|file)\://|www.)[a-za-z0-9\.\-]+(/[a-za-z0-9\?\&\=;\+!'\(\)\*\-\._~%]*)*([^<]+)*
try this.see demo.
http://regex101.com/r/hq1rp0/83
regex
No comments:
Post a Comment