In 5.10, you can even disable needless backtracking$line =~ /\bh(?:e(?:l(?:l(?:o)?)?)?)?\b/i;
$line =~ /\bh(?:e(?:l(?:l(?:o)?+)?+)?+)?+\b/i;
In reply to Re^2: Regex - Matching prefixes of a word
by ikegami
in thread Regex - Matching prefixes of a word
by SuicideJunkie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |