I figured this would be easy to find, but I haven't been successful.
I need to be able to tokenize the following expression
(4 + 5) + myfunc('two words', 3, 5)
into
(
4
+
5
+
myfunc
(
'two words'
,
3
,
5
)
It seems like this is probably a common need, however I haven't been able to find any good documentation on this out there. Is this something I could do using regex? Anybody know of an existing way to do this?
I'm using C#, but if you have the answer in another language, don't be shy.
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…