Difference: RegularExpression (8 vs. 9)

Revision 92010-05-03 - TWikiContributor

Line: 1 to 1
 

Regular Expressions

Line: 21 to 22
 
[^0-9a-zA-Z] Matches any symbol (but not a number or a letter)
[A-Z][A-Z]* Matches one or more uppercase letters
[0-9]{3}-[0-9]{2}-[0-9]{4} US social security number, e.g. 123-45-6789
Changed:
<
<
PNG;Chart Search for topics containing the words PNG and Chart. The ";" and separator is TWiki-specific and is not a regular expression; it is a useful facility that is enabled when regular expression searching is enabled.
>
>
Chart;PNG;!JPG Search for topics containing the words Chart and PNG and not JPG. The ";" and "!" are TWiki-specific operators and are not part of regular expression
 

Searches with "and" combinations

Changed:
<
<
  • TWiki extends the regular expressions with an and search. The delimiter is a semicolon ;. Example search for "form" and "template": form;template
>
>
A TWiki type="regex" SEARCH introduces two special characters to regular expressions:

  • The semicolon ";" is an AND-operator.
    Example search for "form" and "template": form;template
  • The exclamation point "!" as a NOT-operator.
    Example search for "soap" and "wsdl" and not "shampoo": soap;wsdl;!shampoo
 
Changed:
<
<
  • Use Google if your TWiki site is public. Example search for "form" and "template" at TWiki.org: site:twiki.org +form +template
>
>
TWiki also supports a SQL-like query search where you can literally use AND and NOT operators.

Use Google if your TWiki site is public. Example search for "form" and "template" at TWiki.org: site:twiki.org +form +template

 

Advanced

Line: 69 to 75
 
Changed:
<
<
Related Topics: UserDocumentationCategory
>
>
Related Topics: UserDocumentationCategory, VarSEARCH, FormattedSearch, QuerySearch

-- Contributors: PeterThoeny, JohnTalintyre

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.RegularExpression.