/ Published in: Regular Expression
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/^((http[s]?|ftp):\/)?\/?([^:\/\s]+)(:([^\/]*))?((\/\w+)*\/)([\w\-\.]+[^#?\s]+)(\?([^#]*))?(#(.*))?$/gi schema = 2, domain = 3, port = 5, path = 6, file = 8, querystring = 9, hash = 12