import re


def remove_byline(text):
    """ Remove the newswire byline from the textual content.

        Examples of headers are:
            WASHINGTON _ 
            NEW YORK _ 
            AMHERST, N.Y. _ 
            DAR ES SALAAM, Tanzania _ 
            LAUSANNE, Switzerland (AP) _ 
            SEOUL, South Korea (AP) _ 
            BRUSSELS, Belgium (AP) - 
            INNSBRUCK, Austria (AP) -- 
            PORT-AU-PRINCE, Haiti (AP) _ 
            BEIJING &UR; &LR; _ 
    """
    text = re.sub(u'^[A-Z][\-\,\.\w\s]+ (\([A-Z]+\) )?(_|-|--) ', '', text)

    return text