import re


def contains_wp_shortcodes(body, *sc):
    """Search body for one or more shortcodes named sc"""
    tagre = '|'.join(sc)
    # terrible regex taken from Wordpress source
    pattern = re.compile(
        '\\[(\\[?)(' + tagre +
        ')\\b([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)\\[\\/\\2\\])?)(\\]?)'
    )
    if body:
        return pattern.findall(body)
    else:
        return False