I am parsing some text and need to look within an individual sentence (already parsed).
I am looking to pull a numeric range. The problem is, the range is identified with a "dash", a "dash with spaces", or simply the word "to" or "through" and sometimes includes a degree symbol on one or both numbers. It also may have an additional character after the degree symbol (which is not always a standard degree symbol. The actual numbers can be anything....
30 - 70°
30° to 70° C
30 to 70°C
etc, any combination of the examples.
Also, sometimes the "degree" symbol is not compliant.
The sentence may also include two ranges, such as:
I am stumped, but the users don't seem to understand why this is so hard.
Again, it could be 3° to 8° just as well, it is just a number range.
Any hard-core experts know where to start? A START would be great even if the entire scenario is unclear or not doable. If I can cull the low-hanging fruit I can convince the managers that we simply cannot automate the entire process.....
Let me add: it get's even more complicated: it may say Temperature above/below 70° or not to exceed... but I really want the range if it is available. Meaning, the sentence may have only ONE number and no range, and that number may be expressed in both F and C. Help me almighty coding people.....