def _strip_to_integer(trigger):
    return int("".join([x for x in trigger if x.isdigit()]))
Return only the integer part of a string.
dataset/ETHPy150Open mne-tools/mne-python/mne/io/eeglab/eeglab.py/_strip_to_integer