[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Sat, 13 Aug 2005 11:13:38 -0400 -->
- <!--x-from-r13: psbjyre ng bhgcbfgfragvary.pbz (Quevfgbcure Tbjyre) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Yet another regex question -->
- <li><em>date</em>: Sat, 13 Aug 2005 11:13:38 -0400</li>
- <li><em>from</em>: cfowler at outpostsentinel.com (Christopher Fowler)</li>
- <li><em>in-reply-to</em>: <<a href="msg00142.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00130.html">[email protected]</a>> <<a href="msg00142.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Yet another regex question</li>
Nope. We basically look at a Meridian Console PBX. It will display
strings of data as alarms 'XMI001' for example is that a card has been
pulled. If you tell the Meridian to display a history report it will
prefix all alarms that have occurred with '%\s'. This is so devices
that do alarm monitoring do not catch it.
Well, we catch it. The reason we catch it is that we were telling the
regex engine to simply look for 'XMI001' in the stream. The parser
seems to see a stream of data and not lines. So what I'm basically
trying to do is tell the parser to catch 'XMI001' only then it does not
have the '%\s' prefix.
The Meridian has thousands of possible alarms. We only have a list of
100 that we must search for so I need to switch them from a string to
regex expressions. Unfortunately we can only tell the program what to
look for and not what to ignore. If we could tell it to ignore '%\s'
then this problem would be over. So we are trying to figure out a regex
that will catch 'AMH002' and not '% AMH002'. Only AMH002 when its not
preceded with a '% '
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00147" href="msg00147.html">[ale] Yet another regex question</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00130" href="msg00130.html">[ale] Yet another regex question</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
<li><strong><a name="00142" href="msg00142.html">[ale] Yet another regex question</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00145.html">[ale] multiple monitors - different desktops</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00147.html">[ale] Yet another regex question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00142.html">[ale] Yet another regex question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00147.html">[ale] Yet another regex question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00146"><strong>Date</strong></a></li>
<li><a href="threads.html#00146"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>