regexmatch.dev
Explore

Save & Share

Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit

Trim

Published on Tue Mar 01 2022

Trims a string without selecting any unnecessary text.

Additional matching regexes for
Trim

Trim

Trims a string without selecting any unnecessary text.

Select all chars before last backslash

For selecting paths without filename

Code Space Remover

Mathces unnecessary spaces in computer programs.

sha512 - letters and numbers, without special characters. length 512

Just capital **letters and numbers**, **without special characters**. String length 512

Slug

Matches alphanumeric slugs without repeating dashes

Extract Dirty `href` Values in HTML

Even though using a delimiter within a string, without escaping it, is an illegal character, sometimes this still happens and we need to extract a HTML value.

Match directory path

match with or without prevailing/trailing slashes

Match 'words' with internal punctuation retained

Matches words without external punctuation but with internal punctuation.

Maritime Container Number Pattern

Pattern for container numbers. Without the digit verification of course.

DNS and lenght

Ideal for filter Domain with or without subdomain, and length less than 256.