(line, split_by=None, quote=None, strip_quotes=False)
return chunks
Split by separators, preserving quoted blocks; \\ escapes quotes.
Split by separators, preserving quoted blocks; \\ escapes quotes.
Split by separators preserving quoted blocks ; \\ escapes quotes .
def split_quoted(line, split_by=None, quote=None, strip_quotes=False):
    """
    Split by separators, preserving quoted blocks; \\ escapes quotes.
    """
    regexp = _build_split_regexp(split_by, quote, as_type=type(line))
    chunks = re.findall(regexp, line)
    if strip_quotes:
        chunks = [c.strip(quote) for c in chunks]
    return chunks
def split_quoted ( line , split_by = None , quote = None , strip_quotes = False ) : regexp = _build_split_regexp ( split_by , quote , as_type = type ( line ) ) chunks = re . findall ( regexp , line ) if strip_quotes : chunks = [ c . strip ( quote ) for c in chunks ] return chunks