Module collection

Source
Expand description

A handful of universal regular expressions.

This is a collection of the most used regular expressions to reduce making rudimentary mistakes and make the code even more readable. Except English, there are patterns for five other languages as Persian, French, German, Arabic and Chinese.

Structs§

IPV6
IPV4_6

Constants§

ALPHA_NUMERIC
Should be used inside the list method for its full capability.
ANY
BACKSPACE
CHINESE_ALPHABET
Should be used inside the list method for its full capability.
DATE
Captures day, month and year in all valid formats.
DIGITS
Should be used inside the list method for its full capability.
EMAIL
Retrieves two capturing groups, one for username, the other for mail server and its domain.
FORM_FEED
FRENCH_ALPHABET
Should be used inside the list method for its full capability.
GERMAN_ALPHABET
Should be used inside the list method for its full capability.
IPV4
LOWER_CASE
Should be used inside the list method for its full capability.
MONTH_NAMES
Complete and abbreviated forms of Gregorian months (case sensitive).
NEW_LINE
NULL_CHAR
PERSIAN_ALPHABET
Should be used inside the list method for its full capability.
PERSIAN_ALPHA_NUMERIC
Should be used inside the list method for its full capability.
PERSIAN_ARABIC_NUM
Should be used inside the list method for its full capability.
PERSIAN_PUNCTUATION
PERSIAN_SPACES
Should be used inside the list method for its full capability.
TAB
TIME_HH_MM_24
Captures hour and minute in 24-hour clock.
TIME_HH_MM_12_AMPM
Captures hour, minute and optional case-insensitive am/pm in 12-hour clock.
TIME_HH_MM_SS_24
Same as TIME_HH_MM_24 captures hour, minute as well as seconds.
TIME_HH_MM_SS_12_AMPM
Same as TIME_HH_MM_12_AMPM capturing hour, minute, seconds and optional case-insensitive am/pm.
UPPER_CASE
Should be used inside the list method for its full capability.
UPPER_LOWER_CASE
Should be used inside the list method for its full capability.
VERTICAL_TAB
WEBSITE_URL
Retrieves protocol, subdomain, domain name, top level name, directory and query params of a URL on multiple lines.