Regular Expression & Language Tester
Test regular expressions, formal languages, lexical tokens, and capture groups against multi-line string corpora. Built for Theory of Computation, this workbench updates the match & acceptance inspector and scalar readouts in real time as parameters change.
Technical Reference & Equations
- Formal DFA 5-Tuple:
M = (Q, \Sigma, \delta, q_0, F), \quad \delta: Q \times \Sigma \to Q(Q: finite states, Sigma: alphabet, delta: transition function, q_0: start state, F: accept states.) - Extended Transition & Acceptance:
L(M) = \{ w \in \Sigma^* \mid \hat{\delta}(q_0, w) \in F \}(A string w is accepted if its unique state path ends inside F.) - Regular Expression Core Operators:
R_1 \cup R_2 \; (\text{union}), \quad R_1 R_2 \; (\text{concat}), \quad R^* \; (\text{Kleene star})(Regular expressions, DFAs, and NFAs recognize the exact same class of regular languages.)
View full Theory of Computation Formula Sheet | Constants Table
Related Automata & TOC Calculators
- DFA Automaton Simulator: Trace binary input strings across deterministic finite automata state-transition graphs.
- Base & Two’s Complement Converter: Convert between Binary, Octal, Decimal, Hex, and signed 8/16-bit Two’s Complement with interactive bit toggles.
- ASCII / Hex / Base64 Encoder: Encode and decode between UTF-8/ASCII text, hexadecimal, binary, and Base64 with byte-by-byte inspection.
- IEEE-754 Single-Precision Float: Toggle sign, 8-bit exponent, and 23-bit mantissa bits interactively and inspect hex encoding.
- Bitwise ALU Simulator: Evaluate AND, OR, XOR, NOT, arithmetic/logical shifts, and flag bits across aligned bit registers.
- CPU Cache Address Slicer: Slice any 32-bit memory address into Tag, Set Index, and Block Offset bits.