Created
August 11, 2020 10:01
-
-
Save Cyril-Pop/568d05a8d601f19cc635f7adf2b33fe6 to your computer and use it in GitHub Desktop.
specialSplit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
varstr = "Python c) like pip to install" | |
regEx = r'(\w\)\s\w+)\s?' | |
#mid = re.search(regEx, varstr).group(1) | |
newlst = re.split(regEx, varstr) | |
print newlst |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment