I have a string that has two things, which is the name of the petitioner and the advocate.
I wanna separate the petitioner names and the advocate names.
All petitioner names start with a number (1-) and the advocate name start with Advocate-.
1) RAM PRASAD\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0Advocate- ADITYA PRASAD MISHRA, A.P. MISHRA
This is another string.
1) KALAICHELVI
Advocate - NOTICE ORDER R1 ONLY, -------------------------------, R1 - TAPAL RETURNED, NOT KNOWN
2) KALIMUTHU 3) RAMACHANDRA GOAUNER 4) SETHU AMMAL 5) SOMU GOUNDER 6) SOMASUNDAR A GOUNDER 7) KARUNANITHI 8) LALAITHAMMAL 9) JEGANNATHA GOUNDER
I tried doing this, re.split(r'[ ]\xa0\xa0(?=[0-9]+\b)', s) but works fine when the Adovate Name isn't present. How do I do this?