3 ms·
I think Regex is too low-level and a problem worth abstracting. It works fine with simple patterns but I don't really see how a pattern like this: /((([A-Za-z]
by dailygrind___ 6y ago
I think Regex is too low-level and a problem worth abstracting. It works fine with simple patterns but I don't really see how a pattern like this:
/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_])?\??(?:[-\+=&;%@.\w_])#?(?:[\w]*))?)/
(https://stackoverflow.com/questions/161738/what-is-the-best-regular-expression-to-check-if-a-string-is-a-valid-url?answertab=votes#tab-top https://stackoverflow.com/questions/161738/what-is-the-best-...)
contributes to readability.