Deelx is a Perl-Compatible Regular Expression Engine in the C ++ environment. It is a research and development project carried out by regexlab.
Compared with Greta and boost, deelx is fully written in the template library and supports char, wchar_t, Int, and other base types.
All code is located in a header file (. h), which is easier and easier to use than any engine.
Http://www.regexlab.com/zh/deelx/
System: Regexp * r = getregexp (); <br/> If (r) <br/>{< br/> r-> pstring = T ("My QQ is 630235622 "); <br/> r-> ppattern = T ("// D"); <br/> r-> compile (); <br/> matchresult mr = r-> getmatch (); <br/> while (Mr! = NULL & mr. ismatched () <br/>{< br/> tchar T [255]; <br/> copy (T, R-> pstring + mr. getstart (), 2 * (Mr. getend ()-Mr. getstart (); <br/> // messageboxw (app-> base. mainwindow, T, T ("matched:"), 0); <br/> mr = r-> getmatch (); <br/>}< br/> r-> pstring = T ("qqmy QQ is 630235622 "); <br/> r-> ppattern = T ("// W"); <br/> // R-> compile (); <br/> messageboxw (app-> base. mainwindow, R-> Replace (T ("p"), T ("replaced:"), 0); <br/> r-> dispose (); <br/>}