Regex Library

BibTeX Source Fixer

Fixes BibTeX source entries by removing surrounding braces and trailing comma.

Find

\{([a-zA-Z0-9])\},

Replace

$1

Email Address

Matches most common email address formats.

Find

[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}

URL

Matches standard URLs (HTTP/HTTPS).

Find

https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)

IPv4 Address

Matches valid IPv4 addresses.

Find

\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b

Date (ISO 8601)

Matches dates in YYYY-MM-DD format.

Find

^\d{4}-\d{2}-\d{2}$

Slugify

Replaces non-alphanumeric characters with hyphens (useful for URLs).

Find

[^a-z0-9]+

Replace

-

Remove HTML Tags

Matches HTML tags (useful for stripping HTML).

Find

<[^>]*>

Markdown Heading

Matches markdown heading lines (levels 1-6).

Find

^#{1,6}\s+.*$