import re


def _remove_comments(source):
    """ Return source without comments.
    """
    comment_re = r'(/[*].*?[*]/)|(//[^\n]*)'
    return re.sub(comment_re, '', source, flags=re.MULTILINE | re.DOTALL)