TextBuffer and regex?

Hi all,
Is anyone using regular expressions with a GtkTextBuffer? Is there a
'recommended' way to do this yet? If not, does anyone know a regex
library out there that allows an abstract character source as the "string
to search" parameter, rather than a char * or unichar *? That would make
it pretty easy to fit use with a GtkTextBuffer. Slower is better than
nothing and probably works fine in most cases...

take care,