At 13:45 30.01.2008 +0100, Zorro wrote:
>why my program not work?
>
> wxString x = "Hello";
> wxString y = "world";
> wxString n = "123";
> wxRegEx *r = new wxRegEx("e[a-z]*o");
> wxRegEx r2("/[a-z]*/");
>
> wxPrintf(_("regex [%s]\n"),r->GetMatch(x).mb_str());
>
>I would lige to get "ello"
Look at the help of wxRegEx. You need Compile(), Matches(), GetMatch().
bye Fabi