in reply to Re: Matching on a specific line of text
in thread Matching on a specific line of text

OP wants to match on a pattern, e.g. \d+\.\d+, not the specific number 12345.67890 .. (note also in your regex you didn't escape the period).

a switch is probably overkill here -- can just use if/else .. and avoids the caveats about using Switch -- see this node: using switch