On Thu, 2009-01-08 at 17:43 +0900, tks wrote:
> > On Wed, 2009-01-07 at 02:00 +0900, tks wrote:
> > [...]
> >>   reg = g_regex_new ("\d\D\s\S\w\W",
> >>                      0,
> >>                      0,
> >>                      &error);
> >
> >
> > Watch out that \ is special in C strings, so you need
> > \\d\\D etc.
> >
> > Liam
> 
> Thanks, I'm so stupid! :P

No - it's actually not obvious, especially since regular
expressions are a separate type in some other languages.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to