Search

You can search through the entire content of ETRdok in a simple Google-like way by the Search item in upper menu bar. The search will cover not only the text of the entries but also assigned categories, tags (keywords), titles and descriptions. Both the searched contents and the search expression have a simplified syntax: comparison is case-insensitive, white spaces are treated equally and trimmed, match with a single word in the search expression is enough.

Enable comment search

If you switch this option on, the search will cover the content of comments, too.

Regular expressions

If you want to use a more sophisticate search expression, you have to enable option "Regular expression" on the search results page. In this case searched content is not simplified and the search expression has Regex syntax.

Basic regex symbols:

  • any character: .
  • one of the string characters: [<string>]
  • parentheses turn expressions into elements: (<expression>)
  • 0 or more consecutive occurrences of the previous character/element: *
  • 1 or more consecutive occurrences of the previous character/element: +
  • 0 or 1 occurrence of the previous character/element: ?
  • specified number of consecutive occurrences of the previous character/element: {<number>}
  • specified interval of consecutive occurrences of the previous character/element: {<min>,<max>} or: {<min>,} or: {,<max>}
  • one of the specified characters/elements: <exp>|<exp>
  • word boundary (i.e. the start or end of a word): \b
  • white space character (space, end of line, tabulator etc.): \s
  • decimal digit (same as [0-9]): \d
  • word character, i.e. English letter, underscore or digit (same as [a-zA-Z_0-9]): \w
  • start of a text element (entry text, title, description, category name, tag name): ^
  • end of a text element (entry text, title, description, category name, tag name): $
  • metacharacters can be escaped by backslash (\) character: \+ \. \? \* \\ \$ \^ \( \) \[ \] \{ \}
Examples:
  • five-digit numbers: \d\d\d\d\d or: \d{5} or: [0-9]{5} or: [0123456789]{5,5} or: (0|1|[2-8]|9){5}
  • real numbers with or without sign: [+-]?\d+(\.\d+)?
  • time in 'hh:mm:ss' format: (20|21|22|23|[01]\d)(:[0-5]\d){2}
  • comment block in /*...*/: /\*.*\*/
  • text elements (entry text, title, description, category name, tag name) starting with the standalone word "tables" with optional tailing white spaces: \btables\s*$

Powered by BlogEngine.NET 1.4.5.7

Legfrissebb ● Recent

Címkefelhő ● Tag Cloud