Ferrum Marketplace

Regex Cookbook

Vyloxi ✔ · ⬇ 0 installs · Snippets

Tested regular expressions for emails, URLs, dates, numbers, IDs, passwords, whitespace and more, in every language.

vyloxi.regex-cookbook Download .fext

In Ferrum open Extensions in the sidebar, search for Regex Cookbook and press Install. Or use Extensions: Install from File with the downloaded file.

Regex Cookbook

Tested regular expressions for emails, URLs, dates, numbers, IDs, passwords, whitespace and more, in every language.

Type a prefix and press Tab. 28 snippets.

Language Prefix What it inserts
* rx-email An email address
* rx-url An http or https URL
* rx-domain A domain name
* rx-ipv4 An IPv4 address
* rx-date A date, YYYY-MM-DD
* rx-time A 24 hour time
* rx-int An integer
* rx-decimal A decimal number
* rx-hex A hex color
* rx-uuid A UUID
* rx-slug A URL slug
* rx-user A username
* rx-pass A password with 8+ chars, upper, lower, digit
* rx-phone An international phone number
* rx-semver A semantic version
* rx-trim Leading or trailing whitespace
* rx-blank Empty lines
* rx-spaces Two or more spaces
* rx-tag An HTML tag
* rx-hashtag A hashtag
* rx-word A word with letters and apostrophes
* rx-card A 13 to 19 digit card number
* rx-zipus A US ZIP code
* rx-zipca A Canadian postal code
* rx-quoted A double quoted string
* rx-comment A // comment
* rx-camel The boundary inside camelCase
* rx-dupword A repeated word

This extension runs no code and asks for no permissions.