スペースによる String2 の解析に問題があります。考え?
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?
説明:
* は無視しようとしているスペースを表し、% は見つけたいスペースを表します。
"%7-A-4,*4-93-P"
ありがとう。