Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
October 8, 2004, 2:30 pm
rate this thread
Re: [newbie] How can I catch a C comment with a regex?
[Attempt at parsing a programming language using REs snipped]
You don't. Programming langauges are too complex to be parsed by REs.
Just one issue (the most trivial one) that apparently you didn't think
about: What if the /* appears inside of text?
Use a parser to parse a programming language.