# note, this matches "qux foo bar" and "bar foo qux", but not "bar foo bar" # see Regexp::Common::balanced documentation for details qr/$RE{balanced}{-begin => "qux|bar"}{-end => "bar|qux"}/