I have some text in a file
Code: Select all
May 12 2009 11:30:38
Temp pH ORP
79.0 8.00 427
CRX is ON Auto
KRX is OFF Auto
OZN is OFF Auto
HET is OFF Auto
TPF is ON Auto
RFG is OFF Auto
VOD is OFF Manual
PMP is OFF Auto
FPH is ON Auto
FMH is OFF Manual
COL is OFF Auto
MHL is OFF Auto
MHC is OFF Auto
MHR is OFF Auto
VHO is ON Auto
SW1 is OFF Auto
SW2 is OFF Auto
MNT is OFF Auto
VPH is OFF Auto
ALM is OFF Auto
PH1 is PF3 Auto
PH2 is PF4 Auto
Power Failed: None
Power Restored: None
Using regex that works for me in the past even the simple expression
MHR (.*.) Auto
gives me back the MHR line and everything after. I just need to capture the line or really just the ON or OFF status.
Here is what I am using right now
Code: Select all
Let>Pattern=MHR (.*.) Auto
Regex>%Pattern%,%var%,0,mres,num,0
Let>X=%mres_1%
Any help would be great!