# rich 15.0.0 (MIT), harvested by tools/harvest_corpus.py
=== input
Highlight text with a regular expression, where group names are
        translated to styles.

        Args:
            re_highlight (Union[re.Pattern, str]): A regular expression object or string.
            style (Union[GetStyleCallable, StyleType]): Optional style to apply to whole match, or a callable
                which accepts the matched text and returns a style. Defaults to None.
            style_prefix (str, optional): Optional prefix to add to style group names.

        Returns:
            int: Number of regex matches
        
=== parse google
short_description: |
  Highlight text with a regular expression, where group names are
  translated to styles.
blank_after_short_description: True
blank_after_long_description: False
style: google
- DocstringParam
  description: 'A regular expression object or string.'
  kind: param
  key: 'param'
  arg_name: 're_highlight'
  type_name: 'Union[re.Pattern, str]'
  is_optional: False
- DocstringParam
  description: |
    Optional style to apply to whole match, or a callable
    which accepts the matched text and returns a style. Defaults to None.
  kind: param
  key: 'param'
  arg_name: 'style'
  type_name: 'Union[GetStyleCallable, StyleType]'
  is_optional: True
  default: 'None'
- DocstringParam
  description: 'Optional prefix to add to style group names.'
  kind: param
  key: 'param'
  arg_name: 'style_prefix'
  type_name: 'str'
  is_optional: True
  raw_type_name: 'str, optional'
- DocstringReturns
  description: 'Number of regex matches'
  kind: returns
  key: 'returns'
  type_name: 'int'
  is_generator: False
=== detect
google
=== compose google
Highlight text with a regular expression, where group names are
translated to styles.

Args:
    re_highlight (Union[re.Pattern, str]): A regular expression object or string.
    style (Union[GetStyleCallable, StyleType]): Optional style to apply to whole match, or a callable
        which accepts the matched text and returns a style. Defaults to None.
    style_prefix (str, optional): Optional prefix to add to style group names.

Returns:
    int: Number of regex matches
