def test_pick_channels_regexp():
    ch_names = ['MEG 2331', 'MEG 2332', 'MEG 2333']
    assert_array_equal(pick_channels_regexp(ch_names, 'MEG ...1'), [0])
    assert_array_equal(pick_channels_regexp(ch_names, 'MEG ...[2-3]'), [1, 2])
    assert_array_equal(pick_channels_regexp(ch_names, 'MEG *'), [0, 1, 2])
Test pick with regular expression
dataset/ETHPy150Open mne-tools/mne-python/mne/io/tests/test_pick.py/test_pick_channels_regexp