Regular Expression - Capturing all repeating groups

后端 未结 2 940
无人共我
无人共我 2020-12-01 17:11

I have strings like below:

@property.one@some text here@property.two@another optional text here etc

which contains @.+?@ strin

2条回答
  •  萌比男神i
    2020-12-01 17:51

    If you know that the separator will be @, then why not just use the split method (string.split('@'))?

提交回复
热议问题