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

Thanks, I'm so stupid! :P



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