Then, I got really sad when I realized that there is no RegEx's in the core ActionScript language.
The second one is a bit of a headache for error checking. I suppose I have a few options. I can:
- See what I can do with the methods provided by the String object. These methods are less comprehensive than those provided standard for C++. Gah.
- I can use a third party RegEx library. This has it's own set of problems. I have no idea how stress tested anything I'll find will be, so I'll have no idea how well it's been QA'ed. Also, after many attempts at reading the Cammel Book's detailed explanation of Perl's regex engine, I gather that something that complex should be very slow if not written in something like C. I haven't benchmarked ActionScript, but I hesitate to give it the benefit of the doubt in this area. :-P
I guess I answered my own dilema. Error checking by using indexOf() and charAt() methods. Gosh. How perfectly retro. Just like using C++. :-P