diff options
| author | rramthun <rramthun@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2005-08-12 20:16:38 +0000 |
|---|---|---|
| committer | rramthun <rramthun@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2005-08-12 20:16:38 +0000 |
| commit | 20002b6386c2933e6538ab335a4b53e6aab273c2 (patch) | |
| tree | baee301aa394b819113ebb84ff8391d8be33c869 /htroot/Help.html | |
| parent | 5716f8521dd1b947ca95aee9a1fdfdf4ab4ae5d3 (diff) | |
Added Regex tutorial to Help.html, because many people don't understand Regex.
Added german translation for Regex tutorial.
Added bold and underline to bbCode.
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@522 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/Help.html')
| -rw-r--r-- | htroot/Help.html | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/htroot/Help.html b/htroot/Help.html index 2875acc61..56a6b982c 100644 --- a/htroot/Help.html +++ b/htroot/Help.html @@ -66,7 +66,44 @@ s --> Search Page<br> n --> News<br>
w --> Network<br>
t --> Status<br>
-
+<br>
+<br>
+<hr>
+YaCy uses Regular Expressions for some functions, for example in the blacklist.<br>
+<br>
+There are some standards for these regexps, YaCy uses the syntax used by Perl 5.<br>
+Here ist a short overview about the functions, which should fir for most cases:<br>
+<br>
+<br>
+<table>
+<tr><td>.</td><td>: arbitrary character</td></tr>
+<tr><td>x</td><td>: character x</td></tr>
+<tr><td>^x</td><td>: not x</td></tr>
+<tr><td>x*</td><td>: 0 or more times x</td></tr>
+<tr><td>x?</td><td>: 0 or 1 time x</td></tr>
+<tr><td>x+</td><td>: 1 or more times x</td></tr>
+<tr><td>xy</td><td>: concatenation of x and y</td></tr>
+<tr><td>x|y</td><td>: x or y</td></tr>
+<tr><td>[abc]</td><td>: a or b or c (same as a|b|c)</td></tr>
+<tr><td>[a-c]</td><td>: a or b or c (same as above)</td></tr>
+<tr><td>x{n}</td><td>: exactly n appearances of x</td></tr>
+<tr><td>x{n,}</td><td>: at least n appearances of x</td></tr>
+<tr><td>x{n,m}</td><td>: at least n, maximum m appearanches of x</td></tr>
+<tr><td>( )</td><td>: Modify priority of instructions</td></tr>
+<tr><td>\</td><td>: Escape-Character, used to escape special characters (for example "[" or "*"), so that they loose their special meaning</td></tr>
+</table>
+<br>
+<br>
+Regex follow a special priority (descending): concatenation, unary operators (*,+,^,{}), binary operators (|). This can be overridden with brackets.<br>
+<br>
+Example:<br>
+<br>
+.*heise.de/.*/[0-9]+<br>
+<br>
+This matches heise.de/ with a string in front of it, for example "http://www.", followed by any string, then a slash and a number. The dot in "heise.de" is not escaped with "\", because it represents any character, thus the "." itself, too.<br>
+A possible URL which would match this regexp is: http://www.heise.de/newsticker/meldung/59421<br>
+An URL which would not match is: http://www.heise.de/tp/r4/artikel/20/20701/1.html<br>
+There is ".html" at the end, which is not included with the Regular Expression.
#[footer]#
</body>
</html>
|
