in reply to Regular expression for C statement

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