diff options
| author | Michael Peter Christen <mc@yacy.net> | 2012-09-14 12:04:54 +0200 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2012-09-14 12:04:54 +0200 |
| commit | a30653a864bcd30a3e406eabf86f3ff60e3a6a86 (patch) | |
| tree | 770047627816cb35a4f14e81fe44198c76443edd /htroot/RegexTest.html | |
| parent | 0504b01bdc00021d317e34cc4003ed8b26b42be8 (diff) | |
added a regular expression test servlet which is linked within the
parser/crawler error page whenever a problem with regular expression
occurs.
This makes it easy to correct and enhance the must-match and
must-not-match patterns just by trying out which pattern could be
correct.
Diffstat (limited to 'htroot/RegexTest.html')
| -rw-r--r-- | htroot/RegexTest.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/htroot/RegexTest.html b/htroot/RegexTest.html new file mode 100644 index 000000000..76a2ca812 --- /dev/null +++ b/htroot/RegexTest.html @@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > + <head> + <title>YaCy '#[clientname]#': Crawl Start</title> + #%env/templates/metas.template%# + </head> + <body id="IndexCreate"> + #%env/templates/header.template%# + #%env/templates/submenuIndexCreate.template%# + <h2>RegexTest</h2> + <fieldset> + <form method="get" action="RegexTest.html" accept-charset="UTF-8"> + <dl> + <dt> + <label>Test String</label> + </dt> + <dd> + <input name="text" id="text" type="text" size="80" maxlength="256" value="#[text]#" style="font-size:16px"/> + </dd> + <dt> + <label>Regular Expression</label> + </dt> + <dd> + <textarea name="regex" id="regex" cols="80" rows="5" style="font-size:16px">#[regex]#</textarea> + </dd> + <dt> + <label>Result</label> + </dt> + #(match)#<dd><img src="/env/grafics/nok.png"> no match</dd>::<dd><img src="/env/grafics/ok.png"> match</dd>::<dd><img src="/env/grafics/bad.png"> error in expression: #[error]#</dd>#(/match)# + <dt></dt> + <dd> + <input name="submit" id="submit" type="submit" /> + </dd> + </dl> + </form> + </fieldset> + #%env/templates/footer.template%# + </body> +</html> |
