I am having trouble parsing String2, by a space. Thoughts?
String1 = "THIS IS STRING1 18-23-80-18"
String2 = "THIS IS STRING2 7-A-4, 4-93-P"
Split1 = String1.rsplit(" ",2)
Output1 = "18-23-80-18" #This Works fine
Split2 = String2.????? # Not sure what to do here
Output2 = "7-A-4, 4-93-P" #How do I Ignore the first space from the right?
Clarification:
The * represents the space I am trying to ignore and the % represents the space I want to find.
"%7-A-4,*4-93-P"
Thanks.
Use regex to split the string: