Click here to Skip to main content
15,886,830 members
Articles / Programming Languages / C#

Parsing a postfix expression in C#, my naive approach

Rate me:
Please Sign up or sign in to vote.
3.67/5 (5 votes)
19 Dec 2010CPOL 11.4K   1  
Regex combined = new Regex(@"\G(\s+(?[+-*/])|\s*(?-?[0-9]+))", RegexOptions.ExplicitCapture);This line has an error:parsing "\G(\s+(?[+-*/])|\s*(?-?[0-9]+))" - [x-y] range in reverse order.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions