URL Regex (protocol strict)

Published on Tue Mar 01 2022

Includes resource strings, taken from here: https://gist.github.com/dperini/729294

Additional matching regexes for
URL Regex (protocol strict)

URL Regex (protocol strict)

Includes resource strings, taken from here: https://gist.github.com/dperini/729294

Extract domain from URL

'www.**xakep**.ru' === xakep 'http://**github**.com/carbonfive/raygun' === github 'https://www.**cnet**.com' === cnet '**xewveqmwcz90sl64**.co/' === xewveqmwcz90sl64

Conventional Commits validation

This regex prevents the writing of non-standard conventional commits. I'm available on my [github](https://github.com/chrisemke)

credit card

Based on http://www.regular-expressions.info/creditcard.html This example includes test strings. This only validates the pattern, and not whether the credit card number passes a checksum validation. See the Luhn algorithm for details https://en.wikipedia.org/wiki/Luhn_algorithm For an implementation in Lasso, see https://github.com/stevepiercy/sp_valid_creditcard

Github URI Validator

Validate Github URI

UK fixed and mobile phones

Will match all fixed and mobile phone numbers with 9 or 10 digit NSN Resource used: https://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom

Email

This is a bit simpler version that is **still quite robust.** It was taken from [a Formik example.](https://formik.org/docs/guides/validation#validate)

Email validation

because everything else is too strict

IRC protocol global parsing

1. prefix (IRC protocol prefix parsing) 2. command 3. parameters (IRC protocol arguments parsing)

Capturing between phrases across multiple lines

Discussion https://www.reddit.com/r/regex/comments/kxtyl6/capturing_between_phrases_across_multiple_lines/ https://www.reddit.com/user/Pauley0/