if glib does not have regex support, try libpcre