Hi. I need to generate a regular expression. I use to do this by hand, in cases like the following: I have: 340000000000000 349999999999999 and 370000000000000 379999999999999 they represents ranges, then I store in a database the following regular expresion: 3[4,7]% That's easy. But there are cases like: 6221260000000000 6229259999999999 that it's not so simple, but I used to solve that, (in this case with a few of regular expresions similar like the one above), but my head start to hurts. :doh: And, you know, there are another ranges that need very complex regular expressions. So, my question is: Somebody knows about a tool, or program (or maybe a class that I could use in my program) that it could help me to build regular expressions like the ones above, just with the input of that ranges? Or maybe someone have some useful ideas about it. I know, maybe this is not the right forum to post that, but I thought, just because I'm using C++... Any help or hint will be appreciate it. Thanks.
Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )