Changes between Initial Version and Version 1 of Regular expression support


Ignore:
Timestamp:
Oct 21, 2009, 10:06:00 AM (15 years ago)
Author:
kthoden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Regular expression support

    v1 v1  
     1{{{
     2#!html
     3
     4    <h1>Regular Expressions in Arboreal</h1>
     5
     6<p>Arboreal allows for regular expression searches, using the syntax
     7of <b>Perl 5.003</b> regular expressions. The regular expression
     8library used is <a
     9href="http://jakarta.apache.org/oro/index.html">Jakarta ORO</a>.</p>
     10
     11<p>A summary of the regular expression syntax is available in the <a
     12href="jakarta-oro-2.0.6/docs/api/org/apache/oro/text/regex/package-summary.html#perl5re">API documentation</a>.</p>
     13
     14<h3>A note on parenthesized groups</h3>
     15
     16<p>If a regular expression contains <b>at least one</b> parenthesized
     17group, Arboreal will highlight in the search results <b>only</b> the
     18contents of the parenthesized groups. E.g., a search for
     19<tt>([Tt]his).*?(sentence)</tt> will produce results such as the
     20following:</p>
     21
     22<blockquote><i><span class="hilite">This</span> short <span
     23class="hilite">sentence</span> illustrates the point.</i></blockquote>
     24
     25<p>This feature allows one easily to construct searches, the results
     26of which can be dragged onto a term in the term editor to add
     27instances.</p>
     28}}}