master_parse/__init__.py
def or_magic(re_text: str) -> Pattern:
    """Create a regular expression for matching MAGIC (%cells) and code cells.

    Args:
        re_text (str): The additional text that specifies the particular
                          content we are looking to match.

    Returns:
        A compiled regex that matches either lines that start with DBC's
        markdown or code cell formats.
    """
    # require a comment char before these entries
    re_text = make_re_text(re_text)
    return re.compile(r"({0}|{1})".format(make_magic_text(re_text), re_text))
Create a regular expression for matching MAGIC (%cells) and code cells.

    Args:
        re_text (str): The additional text that specifies the particular
                          content we are looking to match.

    Returns:
        A compiled regex that matches either lines that start with DBC's
        markdown or code cell formats.
    
Create a regular expression for matching MAGIC (%cells) and code cells.
Create a regular expression for matching MAGIC ( %cells ) and code cells .
def or_magic(re_text: str) -> Pattern:
    re_text = make_re_text(re_text)
    return re.compile(r"({0}|{1})".format(make_magic_text(re_text), re_text))
def or_magic ( re_text : str ) -> Pattern : re_text = make_re_text ( re_text ) return re . compile ( r"({0}|{1})" . format ( make_magic_text ( re_text ) , re_text ) )
Create a regular expression for matching MAGIC (%cells) and code cells.
Create a regular expression for matching MAGIC ( %cells ) and code cells .
"""Create a regular expression for matching MAGIC (%cells) and code cells.

    Args:
        re_text (str): The additional text that specifies the particular
                          content we are looking to match.

    Returns:
        A compiled regex that matches either lines that start with DBC's
        markdown or code cell formats.
    """ # require a comment char before these entries
A compiled regex that matches either lines that start with DBC's
markdown or code cell formats.
A compiled regex that matches either lines that start with DBC ' s markdown or code cell formats .
re_text
str
The additional text that specifies the particular
content we are looking to match.
The additional text that specifies the particular content we are looking to match .