From a0642afec002b67eef6976c184161a43c1082330 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Thu, 15 Feb 2007 19:09:10 -0500 Subject: [PATCH] regexp sifter --- docs/config.html | 7 ++++- docs/filters.html | 5 ++++ filters/regexp_sifter.py | 44 +++++++++++++++++++++++++++++ planet/config.py | 12 ++++++-- tests/data/filter/regexp-sifter.ini | 2 ++ tests/test_filters.py | 19 +++++++++++++ 6 files changed, 86 insertions(+), 3 deletions(-) create mode 100644 filters/regexp_sifter.py create mode 100644 tests/data/filter/regexp-sifter.ini diff --git a/docs/config.html b/docs/config.html index 9491a29..b1e6550 100644 --- a/docs/config.html +++ b/docs/config.html @@ -61,8 +61,13 @@ material information. can be found
bill_of_materials
Space-separated list of files to be copied as is directly from the template_directories to the output_dir
+
filter
+
Regular expression that must be found in the textual portion of the entry
+
exclude
+
Regular expression that must not be found in the textual portion of the entry
filters
-
Space-separated list of filters to apply to each entry
+
Space-separated list of filters to apply to +each entry
diff --git a/docs/filters.html b/docs/filters.html index 2ec73e0..b4a0394 100644 --- a/docs/filters.html +++ b/docs/filters.html @@ -46,6 +46,11 @@ expressions. Again, parameters can be passed as URI style.

+

The regexp sifter operates just +like the xpath sifter, except it uses +regular expressions +instead of XPath expressions.

+

Notes