Using defined strings for regex searching with python
问题 I am looking to enhance the script I have below. I am wondering if it is possible to use defined strings such as 'G', 'SG', 'PF', 'PG', 'SF', 'F', 'UTIL', 'C' to search for the Names between them and then use those strings supplied as the name of the column. The issue I have with the current set up is if a name starts with two capitals like the example below it doesn't know the difference. Being able to set the current strings to search for with regex then return the text between them I think