[Developers] mql pattern matching syntax question

Augusto Callejas acallejas at appliedminds.com
Tue Jan 15 23:16:22 UTC 2008


hi-

in the the documentation for pattern matching:

  http://www.freebase.com/view/9202a8c04000641f800000000544e13e#matchsyntax

the table states for the backslash character:

  Use a backslash to escape any punctuation character that you want to match
literally.

does that include all other special characters, as "^", "$", "*", "-", and
"/"?

also, the documenation for the hypen is confusing:

  A hyphen or other punctuation matches an optional space. For example,
  bi-directional matches "bi directional", "bi-directional", or
 "bidirectional".

does "A hyphen" refer to the pattern hyphen, and thus "other punctuation"
means that there are other characters that are equivalent as the pattern
"-"?

thanks,
augusto.




More information about the Developers mailing list