```{index} single: config_re; Config function ``` ```{index} single: Config::config_re; Perl function ``` # config_re Grep configuration entries whose key matches a pattern. ## Synopsis ```perl use Config; my @hits = Config::config_re('^cc'); ``` ## What you get back A list of strings in `key='value'` form, one per matching entry. The pattern is applied to the key portion only; values are included verbatim in the returned strings. ## Examples ```perl use Config; my @arch = Config::config_re('arch'); # archname, archlibexp, ... my @d = Config::config_re('^d_'); # every d_* feature flag ``` ## Edge cases - An empty pattern returns no results. - Non-UTF-8 pattern bytes return no results. ## Differences from upstream - Patterns containing only literal characters match as substrings against the key. Patterns that use regex metacharacters (`^`, `$`, `.`, `*`, `+`, `?`, `|`, `(`, `[`, `\`) are treated as regexes with a substring fallback. The common idioms (`'^cc'`, `'arch'`, `'^d_'`) behave the same as upstream; exotic lookarounds may differ. Covered by `t/81-xs-native/Config/*.t`.