Analizador regex y herramienta depurador

Herramienta gratuita que valida la cadena de entrada proporcionada frente a la expresión regular ofrecida y hace coincidir la salida en virtud de la regex definida.

La herramienta admite el análisis y la depuración en lenguajes JavaScript, Python y PHP


Patrón de RegEx de entrada:
Modificador:
Cadena de entrada:

Información emparejada:
Cadena que coincide:
Patrón de RegEx de entrada:
Modificador:

Cadena de entrada:

Información emparejada:
Cadena que coincide:
Patrón de RegEx de entrada:
Modificador:
Cadena de entrada:

Información emparejada:
Grupos coincidentes:
Cadena que coincide:

Regex Parser Flags

Following are the explanations for the flags used.

Regex Parser Flags Description
g (Global) Don't return after the first match
s (Dot All) Dot also matches newline
i (Case Insensitive) Case insensitive match, ignores case of alphabets
m (Multiline) Causes ^ and $ to match the begin/end of each line
D (Dollar) Makes the dollar sign '$', to always match the end of the string, instead of end of the line
x (Extended) Spaces in the pattern are ignored
U (Ungreedy) The match becomes lazy by default

Regex Parser Examples

Following are few example input regex and results for the sample input string

InputRegex Description Input string Result
[A-Z] Character class: Literally matches all characters given inside '[' ']' Once upon A time There was a King with Seven sons
[A-Za-z]+ Checks for one or more matches Once upon A time
([A-Z]) Capturing group: Captures the matches of pattern within '(' and ')' in separate groups Once upon A time
\w Matches any word character (similar to [a-zA-Z0-9_]) Site
([A-Z])\w+ Capture all groups starting with uppercase alphabet and match all words starting with upper case alphabet followed by word character Once
Obtenga visibilidad a nivel de código y mejore el rendimiento de su aplicación con APM Insight de Site24x7.