Regex help, please
Mark Smith
mark at maseurope.net
Mon Oct 10 19:18:41 EDT 2005
Not regex, but how about
if word 1 of vLineBuffer < 10 then....
Mark
On 11 Oct 2005, at 00:04, Harvey Toyama wrote:
> 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
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list