-/* $Id: rob_regexp.h,v 1.1 2007-10-23 12:26:25 adam Exp $
+/* $Id: rob_regexp.h,v 1.2 2007-10-23 12:36:22 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
*/
/**
- \brief Definitions for Zebra's index rules system
+ \file rob_regexp.h
+ \brief Rob Pike's regular expression matcher
*/
#ifndef ZEBRA_ROB_REGEXP_H
YAZ_BEGIN_CDECL
+/** \brief matches a regular expression against text
+ \param regexp regular expression
+ \param text the text
+ \retval 0 no match
+ \retval 1 match
+
+ Operators: c (literal char), . (any char), ^ (begin), $ (end),
+ * (zero or more)
+*/
int zebra_rob_regexp(const char *regexp, const char *text);
YAZ_END_CDECL