[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Generic character types of gregex are unrecognised
- From: Liam R E Quin <liam holoweb net>
- To: tks <tksmashiw gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Generic character types of gregex are unrecognised
- Date: Thu, 08 Jan 2009 12:53:47 -0500
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]