def pick_channels_regexp(ch_names, regexp):
 r = re.compile(regexp)
 return [k for (k, name) in enumerate(ch_names) if r.match(name)]

def pick_channels_regexp ( ch_names , regexp ) : r = re . compile ( regexp ) return [ k for ( k , name ) in enumerate ( ch_names ) if r . match ( name ) ]
pick channels using regular expression .