HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Regular Expression

11-05-2008, 02:51 AM#1
MaD[Lion]
Been a while since i worked with wc3. Now i felt like working on the regex engine again.
I got it working with character class so far. Wat im gonna add is these operators: ?,*,+ (hopefully {} too )
I will also add alternation "|" and grouping "(...)", the first one is ok, but these 2 combined gives me a headache, especially the grouping... I cant think of a way to do it yet. So any suggestion is nice. Ive been reading regex algorithm articles, but all they say is just about the automato, and i dont really get it, they dont talka bout how to handle the string itself, like how to detect grouping and how to handle them. They only show sequences of how to check the characters, im prolly not good enough for this, but lets try anyway :P
Anyway here is a shot of wat ive made so far:
Attached Images
File type: jpgregex.jpg (107.5 KB)