Let's back up a moment and forget you've ever heard about the existence of regular expressions, and even Perl. In fact, let's forget that you're trying to parse a C if statement. Try to answer these questions so that we can help guide you to an effective solution:
What are you trying to accomplish?
Why do you want to parse C statements?
What will you do with the result?
Dave
In reply to Re: Regular expression for C statement
by davido
in thread Regular expression for C statement
by dongre.avinash
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |