I'm trying to capture tokens from a pseudo-programming-language script, but the +-*/
, etc are not captured.
I tried this:
[a-z_]\w*|"([^"\r\n]+|"")*"|\d*\.?\d*|\+|\*|\/|\(|\)|&|-|=|,|!
For example i have this code:
for i = 1 to 10
test_123 = 3.55 + i- -10 * .5
next
msg "this is a ""string"" with quotes in it..."
in this part of code the regular expression has to highlight: valid variablenames, strings enclosed with quotes, operators like (),+-*/! numbers like 0.1 123 .5 10.
the result of the regular expression has to be:
'for', 'i', '=', '1', 'to', '10', 'test_123', '=', '3.55', '+' etc....
the problem is that the operators are not selected if i use this regular expression...