Index: src/CONFIG_STREAM =================================================================== RCS file: /afs/psi.ch/user/z/zimoch/.cvsroot/StreamDevice2/src/CONFIG_STREAM,v retrieving revision 1.12 retrieving revision 1.13 diff -r1.12 -r1.13 43a44,47 > ifdef PCRE > FORMATS += Regexp > endif > Index: src/Makefile =================================================================== RCS file: /afs/psi.ch/user/z/zimoch/.cvsroot/StreamDevice2/src/Makefile,v retrieving revision 1.15 retrieving revision 1.16 diff -r1.15 -r1.16 59a60,63 > ifneq ($(filter Regexp,$(FORMATS)),) > LIB_LIBS += pcre > endif > Index: doc/formats.html =================================================================== RCS file: /afs/psi.ch/user/z/zimoch/.cvsroot/StreamDevice2/doc/formats.html,v retrieving revision 1.8 diff -r1.8 formats.html 404a405,427 > >
%/regex/
)
> This input-only format matches href="http://www.pcre.org/" >Perl compatible regular expressions (PCRE).
> It is only available if a PCRE library is installed and the RELEASE
> file contains the variable PCRE
which should point to the
> install location.
> If the regular expression is not anchored, i.e. does not start with
> ^
, leading non-matching input is skipped.
> A maximum of width bytes is matched, if specified.
> If prec is given, it specifies the sub-expression whose match
> is retuned.
> Otherwise the complete match is returned.
> In any case, the complete match is consumed from the input buffer.
> If the expression contains a /
is must be escaped.
>
> Example: %.1/<title>(.*)<\/title>/
returns
> the title of an HTML page, skipps anything before the
> <title>
tag and leaves anything after the
> </title>
tag in the input buffer.
>