[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 02:48:47 -0400 -->
- <!--x-from-r13: wvzcbc ng lnubb.pbz (Xvz Bbcbivgpu) -->
- <!--x-message-id: 1123915727.13051.13.camel@localhost -->
- <!--x-reference: [email protected] -->
- <!--x-reference: 1123891371.12776.0.camel@localhost -->
- <!--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 02:48:47 -0400</li>
- <li><em>from</em>: jimpop at yahoo.com (Jim Popovitch)</li>
- <li><em>in-reply-to</em>: <<a href="msg00133.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00130.html">[email protected]</a>> <1123891371.12776.0.camel@localhost> <<a href="msg00132.html">[email protected]</a>> <<a href="msg00133.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Yet another regex question</li>
How about using "[^ ]XMI001" where the brackets contain a (set of) valid
character(s) to match against, but in this case a leading carrot '^' in
the brackets indicates that we do NOT want to match against the set of
characters.
So, a regmatch of "[^ ]XMI001" would match "XMI001" and "zXMI001" but
not " XMI001" since the brackets contain a negated space (i.e. no space
before XMI001)
Make sense?
-Jim P.
>
>
> On Fri, 2005-08-12 at 20:12 -0400, Christopher Fowler wrote:
> > On Fri, 2005-08-12 at 20:02 -0400, Jim Popovitch wrote:
> > > Just use this '^ABCDEF', the carrot '^' means beginning of line, the
> > > dollar sign '$' means end of line.
> >
> > Yea I tested that but the regex processor does not seem to see lines?
> > The program that looks at the data was written in C and is using the
> > regex engine in libc.
> >
> > >
> > > -Jim P.
> > >
> > > On Fri, 2005-08-12 at 19:24 -0400, Christopher Fowler wrote:
> > > > I'm trying to create a regex that will catch only the string 'ABCDEF'
> > > > If the string is '% ABCDEF' I do not want the POSIX regex engine to
> > > > catch. Is there a way I can create a regex that will ignore 'ABCDEF' if
> > > > it it preceeded with a '%\s'? The \s is a space.
> > > >
> > > > Thanks,
> > > > Chris
> > > >
> > > > _______________________________________________
> > > > Ale mailing list
> > > > Ale at ale.org
> > > > <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
> > >
> > > _______________________________________________
> > > Ale mailing list
> > > Ale at ale.org
> > > <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</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="00138" href="msg00138.html">[ale] Yet another regex question</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</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="00131" href="msg00131.html">[ale] Yet another regex question</a></strong>
<ul><li><em>From:</em> jimpop at yahoo.com (Jim Popovitch)</li></ul></li>
<li><strong><a name="00132" href="msg00132.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="00133" href="msg00133.html">[ale] Yet another regex question</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00135.html">[ale] multiple monitors - different desktops</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00137.html">[ale] ThinkPad sound working</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00133.html">[ale] Yet another regex question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00138.html">[ale] Yet another regex question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00136"><strong>Date</strong></a></li>
<li><a href="threads.html#00136"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>