yacy_search_server/htroot/RegexTest.html
Michael Peter Christen a30653a864 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.
2012-09-14 12:04:54 +02:00

40 lines
1.4 KiB
HTML

<!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>