Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

would find the instance C/M or C/F in a document and extract that it is important to note that the Race is Caucasian. The same can be done to extract M or F as a Sex meaning Male or Female.

Other than a standard set of POSIX fiags ("midun"), there are some additional, infinit.e-specific, regex fields which are described under XPath, see below.

Using Javascript to generate metadata

...

For reference, here is the complete set of flags for xpath (and regex, except for "O"):

  • 'H': will HTML-decode resulting fields. (Eg "&" -> "&")
  • 'o': if  the XPath expression points to an HTML (/XML) object, then this object is converted to JSON and stored as an object in the corresponding metadata field array. (Can also be done via the deprecated "groupNum":-1)
  • 'D': described above (also works for regex)above 
  • 'c': if set then fields with the same name are chained together (otherwise they will all append their results to the field within metadata) 
Lookup tables in the Unstructured Analysis Handler

...