in reply to Re: Regex - Matching prefixes of a wordin thread Regex - Matching prefixes of a word
$line =~ /\bh(?:e(?:l(?:l(?:o)?)?)?)?\b/i; [download]
$line =~ /\bh(?:e(?:l(?:l(?:o)?+)?+)?+)?+\b/i; [download]