Re: Generic character types of gregex are unrecognised



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


-- 
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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]