Match URLs in Plain Text


/ Published in: Regular Expression
Save to your folder(s)



Copy this code and paste it in your HTML
  1. ^((ht|f)tp(s?)\:\/\/|~/|/)?([\w]+:\w+@)?(([a-zA-Z]{1}([\w\-]+\.)+([\w]{2,5}))(:[\d]{1,5})?)?((/?\w+/)+|/?)(\w+\.[\w]{3,4})?([,]\w+)*((\?\w+=\w+)?(&\w+=\w+)*([,]\w*)*)?

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.