<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">Op 10-10-15 om 11:21 schreef Rhaufed:<br>
    </div>
    <blockquote
      cite="mid:F9CC5B92-D770-46E5-ACA5-B2E3D82860DF@terra.com.br"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div>Thank you,</div>
      <div id="AppleMailSignature"><br>
      </div>
      <div id="AppleMailSignature">using your example, suppose I'm
        interested on filtering on those where  the word Apple OR the
        word pineaple are found.</div>
      <div id="AppleMailSignature">And if Apple AND pineaple</div>
    </blockquote>
    <br>
    <b>/(Apple)|(pineapple)/</b><br>
    <br>
    () = grouping<br>
    | = OR ; the token "|" only matches one single character. By
    grouping the letters of the word, you treat that word as one
    character.<br>
    <br>
    This regexp will match:<br>
    - foo Apple bar<br>
    - foo pineapple bar<br>
    - foo Apple bar pineapple bar<br>
    - foo pineapple bar Apple<br>
    <br>
    Take special care: regexps are matched "first come, first served":<br>
    The string "foo pineapple bar Apple" is not matched because of <b>/(<u>Apple</u>)|(pineapple)/
    </b>but because of <b>/(Apple)|(<u>pineapple</u>)/ !</b><br>
    <br>
    Koos<br>
    <br>
  </body>
</html>