我正在尝试创建一个计算器,其中操作数是单词。它可以重复任意次数。例如 EmpName+xyz 或 EmpName 或 x+rr+fff。它应该拒绝这样的模式,例如 EmpName+
我创建了一个正则表达式:
(?m)(?<Operand>^[a-z].*?)(?<Operator>[+*])
On this output:
1) a + b
2) ab+dddd
3) ab*fffff*ggggg
4) dfg+fg4444+fgf4
5) xxxxx
But it only targets 1,2,3,4 and up to only first operator. Output in regex 2.05.
"Operand: [ab]"
"Operator:[+]"
I am using regex builder 2.05 to test my regex. How i can repeat this pattern any number of times? Thanks in advance.