[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] cont check regex problems
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] cont check regex problems
- From: "Kimberly McKinnis" <kmckinnis (at) tivo.com>
- Date: Tue, 26 Aug 2008 16:38:37 -0700
- References: <C06F86EA303D3A439626BCE2FD50E5A42AA669 (at) corpexch12.Tivo.com>
- Thread-index: AckH0vmavoZJwRh5TBi2rBvNioka2QAAWsBA
- Thread-topic: [hobbit] cont check regex problems
Hmm. Hobbit seems to have not liked the digit range.
Using assetID="[0-9abcdefABCDEF]{8}" is working. I'm not clear *why*
Hobbit didn't like my digit range when perl did, and I'm curious to
figure it out, but for now I'm happy that my check works.
________________________________
From: Kimberly McKinnis [mailto:kmckinnis (at) tivo.com]
Sent: Tuesday, August 26, 2008 4:25 PM
To: hobbit (at) hswn.dk
Subject: [hobbit] cont check regex problems
I'm not clear what I'm doing wrong in my cont check in bb-hosts, and I
was hoping someone could help me out. My regular expression works fine
in perl: perl -e '$text = join "", <>; if ($text =~
/assetID="[0-9A-Fa-f]{8}"/) { print "OK\n"; } else { print "NotOK\n"; }'
< /tmp/vodbrowser.php
However, bb-hosts line fails on the regex check: 10.100.104.53
seachange-vod # testip
cont=vod;http://mrteeny/vod/vodbrowser.php;assetID="[0-9A-Fa-f]{8}"
It *is* a webpage I'm trying to match... so the page starts with:
<html>
<head>
<title>VOD Interface</title>
</head>
<body bgcolor=white>
<h3 align=center>Vod Interface</h3>
<pre>
-----------------------------------
assetID="00080002"
However, I really only care if the assetID is being displayed. Any
suggestions?