Saltar al contenido
Todas las herramientas

Regex Lab

Disponible

Crea, prueba, depura y reutiliza expresiones regulares con coincidencias en vivo, tests unitarios, biblioteca curada, análisis de compatibilidad y ejecución local segura.

Se ejecuta localmente. Tus datos de prueba no salen del navegador.
//gm
JavaScript / ECMAScript·ejecución nativa del navegador
Vista previa de coincidencias
INFO server ready
WARN retrying request
ERROR upstream timeout
DEBUG hidden diagnostics

Biblioteca Regex

Busca recetas curadas con descripción, ejemplos y tests listos para ejecutar, y carga la receta completa en tu espacio de trabajo.

Practical email address

validation · javascript

Matches a pragmatic email shape for UI validation without pretending to implement the full RFC grammar.

/^[^\s@]+@[^\s@]+\.[^\s@]+$/i
emailformsvalidation

UUID v4

validation · javascript

Matches canonical UUID version 4 strings with the correct version and variant nibble.

/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
uuididentifierapi

ISO date shape

dates · javascript

Matches YYYY-MM-DD text shape. Calendar validity such as leap years still belongs to date parsing.

/\b\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])\b/g
dateisoyyyy-mm-dd

HEX color

validation · javascript

Matches three, four, six or eight digit CSS hexadecimal color values.

/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i
csscolorhexfrontend

Semantic version core

extraction · javascript

Extracts major, minor and patch numbers with optional prerelease and build metadata.

/\b(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*)(?:-(?<pre>[0-9A-Za-z.-]+))?(?:\+(?<build>[0-9A-Za-z.-]+))?\b/g
semverversionrelease

HTTP(S) URL

web · javascript

Finds HTTP and HTTPS URLs in prose. Use URL parsing for authoritative validation.

/https?:\/\/[^\s<>"]+/gi
urlhttphttpsweb

Key/value log fields

logs · javascript

Extracts simple key=value pairs and exposes key and value as named captures.

/(?<key>[A-Za-z_][\w.-]*)=(?<value>"[^"]*"|[^\s]+)/g
logskey-valueobservability

Log level

logs · javascript

Finds common application log levels as standalone words.

/\b(?:TRACE|DEBUG|INFO|WARN|ERROR|FATAL)\b/gi
logsleveldebugobservability

URL slug

validation · javascript

Matches lowercase URL slugs made of alphanumeric segments separated by single hyphens.

/^[a-z0-9]+(?:-[a-z0-9]+)*$/
slugurlrouting

IPv4 address

validation · javascript

Matches IPv4 octets from 0 to 255 without accepting over-range values.

/^(?:(?:25[0-5]|2[0-4]\d|1?\d?\d)\.){3}(?:25[0-5]|2[0-4]\d|1?\d?\d)$/
ipnetworkipv4

JWT compact shape

extraction · javascript

Finds strings shaped like a compact three-part JWT/JWS. It does not validate signatures or claims.

/\b[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*\b/g
jwttokensecurity

Double quoted string

text · javascript

Extracts double-quoted strings while allowing escaped characters inside them.

/"(?:\\.|[^"\\])*"/g
stringquotesparser

Referencia rápida

Busca anchors, clases de caracteres, grupos, lookarounds, cuantificadores y operadores habituales.

Todos los tokens

80 mostrados · 80 tokens en total

\n

Newline character

Patrón
\r

Carriage return character

Patrón
\t

Tab character

Patrón
\0

Null character

Patrón
\f

Form feed character

Patrón
\v

Vertical tab character

Patrón
.

Any character except line terminators unless dotAll is enabled

Patrón
a|b

Alternation — match either expression

Patrón
\d

Any digit character

Patrón
\D

Any non-digit character

Patrón
\w

Any word character

Patrón
\W

Any non-word character

Patrón
\s

Any whitespace character

Patrón
\S

Any non-whitespace character

Patrón
[abc]

One character from the set

Patrón
[^abc]

One character not present in the set

Patrón
[a-z]

One character inside a range

Patrón
[a-zA-Z]

One character from multiple ranges

Patrón
[[:alnum:]]

POSIX letters and digits class

Patrónpcre2
[[:alpha:]]

POSIX letters class

Patrónpcre2
[[:digit:]]

POSIX decimal digits class

Patrónpcre2
[[:space:]]

POSIX whitespace class

Patrónpcre2
[[:word:]]

POSIX word-character class

Patrónpcre2
^

Start of input, or start of line in multiline mode

Patrón
$

End of input, or end of line in multiline mode

Patrón
\A

Absolute start of string

Patrónpcre2
\Z

End of string, or before its final line terminator

Patrónpcre2
\z

Absolute end of string

Patrónpcre2
\b

Word boundary

Patrón
\B

Non-word boundary

Patrón
\G

Start of the current match attempt

Patrónpcre2
a?

Zero or one occurrence

Patrón
a*

Zero or more occurrences

Patrón
a+

One or more occurrences

Patrón
a{3}

Exactly three occurrences

Patrón
a{3,}

Three or more occurrences

Patrón
a{3,6}

Between three and six occurrences

Patrón
a*?

Lazy quantifier — consume as little as possible

Patrón
a*+

Possessive quantifier — do not backtrack

Patrónpcre2
(...)

Capturing group

Patrón
(?:...)

Non-capturing group

Patrón
(?<name>...)

Named capturing group

Patrónjavascript
(?P<name>...)

Python-style named capturing group

Patrónpython
(?>...)

Atomic non-capturing group

Patrónpcre2
(?#...)

Inline comment group

Patrónpcre2
(?=...)

Positive lookahead assertion

Patrón
(?!...)

Negative lookahead assertion

Patrón
(?<=...)

Positive lookbehind assertion

Patrón
(?<!...)

Negative lookbehind assertion

Patrón
\1

Match text previously captured by group 1

Patrón
\k<name>

Match text captured by a named group

Patrónjavascript
\k{name}

PCRE2 named backreference

Patrónpcre2
\g{-1}

PCRE2 relative numeric backreference

Patrónpcre2
g

Global matching

Flagjavascript
m

Multiline anchors

Flag
i

Case-insensitive matching

Flag
s

Dot matches line terminators

Flag
u

Unicode-aware matching

Flagjavascript
y

Sticky matching from the current lastIndex

Flagjavascript
x

Ignore pattern whitespace and allow comments

Flagpcre2
U

Invert default greediness

Flagpcre2
$&

Insert the complete match

Sustituciónjavascript
$1

Insert capture group 1

Sustitución
$<name>

Insert a named capture group

Sustituciónjavascript
$$

Insert a literal dollar sign

Sustituciónjavascript
$`

Insert content before the match

Sustituciónjavascript
$'

Insert content after the match

Sustituciónjavascript
${1}

PCRE2 replacement capture group

Sustituciónpcre2
\p{Letter}

Match a Unicode property or script category

Patrón
\P{Letter}

Negated Unicode property or script category

Patrón
\X

Extended Unicode grapheme sequence

Patrónpcre2
\R

Unicode newline sequence

Patrónpcre2
\x20

Character by hexadecimal value

Patrón
\u{1F600}

Unicode code point escape

Patrónjavascript
\Q...\E

Treat enclosed text as literals

Patrónpcre2
\K

Reset the reported start of the current match

Patrónpcre2
(*ACCEPT)

PCRE2 control verb — immediately accept the current match

Patrónpcre2
(*FAIL)

PCRE2 control verb — force the current match path to fail

Patrónpcre2
(*SKIP)

PCRE2 control verb — move the next match attempt forward

Patrónpcre2
(*UTF)

Enable UTF mode in PCRE2

Patrónpcre2

Ejecución aislada

Las expresiones JavaScript se ejecutan en un Web Worker dedicado con un tiempo máximo estricto para que un patrón problemático no bloquee la interfaz de Devary.

Diseñado para ser portable

Selecciona un flavor objetivo para revisar problemas de portabilidad y generar código sin fingir que un único motor se comporta igual en todos los runtimes.

Espacio privado

Los patrones, ejemplos, tests y handoffs importados permanecen en la memoria del navegador y no se envían a un backend de Devary.