I have similar question as posted previously in Python Reverse Find in String.
Here is a sample of my very long string:
t1 = '''1281674 the crescent annandale 02/10/2019 16/10/2019 - 16/11/2019 pending 1281640 city west link rd lilyfield 02/10/2019 16/10/2019 - 16/11/2019 pending 1276160 victoria rd rozelle 25/09/2019 14/10/2019 - 15/10/2019 pending 1331626 31/12/2019 - 31/01/2020 incomplete n/a 1281674 the crescent annandale 02/10/2019 16/10/2019 - 16/11/2019'''
Update: 1/02/2020
I am grouping data into lists before putting into a dataframe. I dont want any data associated with 'incomplete n/a'
Do I need to delete string or is there a regex function to recognised 'incomplete n/a'
and group on its position?
I would like two outputs:
ONE this list t1L = ['1281674 ', '1281640 ', '1276160 ']
. Notice this does not include 1331626.
TWO This string to be split or redefined (not containing 1331626) for example:
t1 = '''1281674 the crescent annandale 02/10/2019 16/10/2019 - 16/11/2019 pending 1281640 city west link rd lilyfield 02/10/2019 16/10/2019 - 16/11/2019 pending 1276160 victoria rd rozelle 25/09/2019 14/10/2019 - 15/10/2019 pending'''
Thanks for any help.