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