split a string by regex expression - split the whole string by the character = only if the character on the left is not # in kotlin

后端 未结 0 2004
小蘑菇
小蘑菇 2020-12-28 09:55

e.g.

I have a string like "test=1+1#=2"

should return a list

  • test
  • 1+1#=2

another string example "2+2#=4=test

相关标签:
回答
  • 消灭零回复
提交回复
热议问题