You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by Apache Wiki <wi...@apache.org> on 2008/11/10 19:14:28 UTC

[Pig Wiki] Trivial Update of "PigLatin" by CorinneC

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Pig Wiki" for change notification.

The following page has been changed by CorinneC:
http://wiki.apache.org/pig/PigLatin

------------------------------------------------------------------------------
     * The comparison operator compOp can be one of 
        * '''==, <nop>!=, >, >=, <, or <=''' for '''numerical''' comparisons. '''Note that if these operators are used on non-numeric data, a runtime error will be thrown'''.
        * '''eq, neq, gt, gte, lt, or lte''' for string comparisons
-       * '''matches''' for regular expression matching, e.g., $0 matches "*apache*". The [http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html format] of regular expressions is that supported by Java.
+       * '''matches''' for regular expression matching, e.g., $0 matches '.*apache.*'. The [http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html format] of regular expressions is that supported by Java.
  
  Thus, a somewhat more complicated condition can be
  {{{