"Hello, can someone help me write a code that shows what words the regex actually matches?"
You can add the following line to your existing code to achieve this:
use Regexp::Debugger;
See Regexp::Debugger.
-- Ken
In reply to Re: Quick Question about checking what the regex does
by kcott
in thread Quick Question about checking what the regex does
by eversuhoshin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |