Regex Explorer

regexmatch.dev is the largest regular expression database for regex pattern and matches containing searchable and filterable records for many different languages

AXIO - Parsing debug:router command

Parsing of a debug:router command output

link findall

<NAME: VALUE>

full url dissection

any given url inside a text will be recognized and split into different groups: - url (full url) - scheme - hostname (subdomain + domain + tld) - port - path - query (GET-parameters) while the only group required for a match is the hostname, therefore `example.com` would allready be a match.

Email Address Validation

This validate all most all email addresses.

Date regex

this regex check if the date is in the format d/m/Y H:i , it will not check the number of days in month

Word wrap text

(Directly inspired by https://macromates.com/blog/2006/wrapping-text-with-regular-expressions/ ) This version only splits between words, so lines may wrap earlier than the given maximum. Passes existing linefeed through "as‐is", so probably not useful for reflowing already wrapped text

Name

English or Arabic Letters and Spaces

yyyy/mm/dd

^(((\d{3}[1-9]|\d{2}[1-9]\d|\d[1-9]\d{2}|[1-9]\d{3})(\/)(((0[13578]|1[02])(\/)(0[1-9]|[12]\d|3[01]))|((0[469]|11)(\/)(0[1-9]|[12]\d|30))|(02(\/)(0[1-9]|[1]\d|2[0-8]))))|(((\d{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))(\/)02(\/)29))$ Match year/month/day format. e.g: 2020/02/29 [match] 2021/02/29 [mismatch] 2021/08/25 [match]

BIC Codes

BIC (Bank Identifier Code) #fin #bank #swift #iban #bic

Reasonable E-mail Validator v1.0

Here is what I came up with for a 'reasonable' e-mail validator. Explanation @ https://geekalicious.org/d/90-validating-e-mail-addresses-with-regex-pcre