Regex help, please

Harvey Toyama harvey.toyama at qlogic.com
Mon Oct 10 19:04:42 EDT 2005


Hi,

I have a log file to parse. The data looks like this:

 

                                                      Chip_Test:

  2   1075.7  R120<-7000h                    00020000         mov
HifRegs

  2   1088.1  R14<-7000h                     00020002         mov
HifRegs

  6   1100.5  [7020h]<-1h                    00020004         mov
RSTS_Busy

 

I do not want to capture the line with "Chip_Test:". I know the third
character will always be a single digit number. I have a feeble
knowledge of Regex from casual Unix use. I thought something like this
would work

 

            put line vLineCounter into vLineBuffer

            if char 3 of vLineBuffer = "[0-9]" then

            ...

 

But I never get a hit. If I substitute "6" for "[0-9]" I do get all the
lines beginning with "6". 



Help, please.

 

-- Harvey

-- 

Harvey Toyama

QLogic Corporation

949-389-7601

 




More information about the use-livecode mailing list