import re


def _strip_newlines_from_pnx_string(pnx_string):
    """ The original pnx record contains "\n", which cause problems for ElementTree, so we must strip them """
    pnx_string_without_newlines = re.sub('\n', '', pnx_string)
    return(pnx_string_without_newlines)