Ov3rload·vor 11 Jahren·discussWhy would you ever use a regex to do this, apart from experimenting?This would be much easier to do with a context free grammar or any decent parsing library.
Ov3rload·vor 13 Jahren·discussThere are many proofs, you can find some of them here:http://www.win.tue.nl/~gwoegi/P-versus-NP.htmLike all famous problems, P vs NP attracts a great number of people, mostly amateurs, that want to try to solve it. Most of those proofs are not peer reviewed, all of them are probably wrong.
This would be much easier to do with a context free grammar or any decent parsing library.