Module Ariel::LabelUtils
In: lib/ariel/label_utils.rb

A set of methods for use when dealing with strings from labeled documents.

Methods

Constants

S_LABEL = "<"
E_LABEL = ">"

Public Class methods

Helper function that returns a regex that will match any open or closing label tags.

Removes all labels such as <l:title> from the given string and returns the result.

Extracts the labeled region representing the given structure node from the parent_extracted_node. A new Node::Extracted is returned to be added as a child to the parent_extracted_node. Used when loading labeled documents.

Returns an array containing a pair of regular expressions to match a start label tag and an end label tag. If the tag_contents is not modified the regular expressions will return any properly formatted label tag. The namespace to search for can also be modified. The returned regular expressions are case insensitive.

[Validate]