An example of using list comprehension to split elements of a list is here: How to split elements of a list?
myList = [i.split('\t')[0] for i in myList]
Can something like this be done using re.split if you want to split on regex? Simply substituting re.split for split in the above along with regex term yields attribution error:
AttributeError: 'str' object has no attribute 're'
So re is not being recognized as the regex library when used in this form of list comprehension. Can it be done?