Tokenize a mathematical infix notation string with regex

前端 未结 0 1750
猫巷女王i
猫巷女王i 2021-02-03 12:17

I\'m trying to split a string in infix notation into a tokenized list, ideally with regex.

e.g. ((10 + 4) ^ 2) * 5 would return [\'(\', \'(\', \'10\',

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