Class DataHarvester::RegexRule
In: scripts/parsing-rules.rb
Parent: Rule

Represents a rule for matching a regular expression and returning a set of results, after possibly applying a substitution.

Methods

apply   new   to_s  

Attributes

subst_rules  [R] 

Public Class methods

RegexRule may have additional patterns for substitutions

Public Instance methods

Applies this rule to the text, also applying needed substitutions, and returns a hash of the results.

Returns a printable string for troubleshooting

[Validate]