Tool to analyze a regular expression and understand its interpretation mechanism and extracting internal properties through the analyzer.
Regular Expression Analyzer - dCode
Tag(s) : Data Processing
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Tool to analyze a regular expression and understand its interpretation mechanism and extracting internal properties through the analyzer.
The software of regex analysis decomposes a regular expression in order to find each component (characters, pattern, matches) and describe its meaning. The analysis is based on a cut of the pattern matching expression.
Example: /\d{2,5}/ correspond to \d (digit) {2,5} between 2 and 5 times.
The script gets minimum and maximum sizes of each element of the expression and calculates the total.
Example: (ab|cde){2,3} has for minimum length 4 (case abab) and maximum 9 (case cdecdecde)
Example: a+ has for minimal length 1 (case a) and maximal infinite (case aaaaa...a)
Currently dCode can do regular expression searches but no real test feature. To test a regular expression, dCode's advice is to use the site Regex101 here (link) with a Javascript inerface that allow seeing instantly (by underlined characters) detected items or captured in the regular expression.
dCode retains ownership of the online 'Regular Expression Analyzer' tool source code. Except explicit open source licence (indicated CC / Creative Commons / free), any algorithm, applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (PHP, Java, C#, Python, Javascript, Matlab, etc.) no data, script or API access will be for free, same for Regular Expression Analyzer download for offline use on PC, tablet, iPhone or Android !
Please, check our community Discord for help requests!