Coding Domain

Perl Programming: Regular Expression Explainer


Most people find regular expressions very confusing, or difficult to handle. However, the regular expression engine is one of the import core components of Perl.

This program can explain a regular expression for you.

RegExp Explainer
> Enter RegExp:
Advanced Options
i: Do case-insensitive pattern matching.
m: Treat string as multiple lines.
s: Treat string as single line.
x: Use extended regular expressions.

This program is just an interface. The real work is done by japhy's YAPE::Regex::Explain module.

There are some minor problems with this engine. For example, \Q at $0 line \E\d+\. does not produce the expected results.