TIP: Click on subject to list as thread! ANSI
echo: semware
to: All
from: `Greg Macdonald`
date: 2003-03-07 11:48:16
subject: [TSEPro] Re: regular expressions

From: "Greg Macdonald" 
@Date: Thu, 6 Mar 2003 17:18:17 -0800
@Sender: semware-owner{at}sawasdi.apana.org.au



Define "in one line".

With more complex searches, it occurs to me that the goal is really more
logical content centric than line centric and the condition should be "in
one sentence or paragraph".

On the other hand, even a paper clip is inadequate if you have too many
pieces of paper.

Greg

----- Original Message -----
From: "Michael Fisher" 
To: "TSE Mailing List" 
Sent: Thursday, March 06, 2003 16:26
Subject: [TSEPro] Re: regular expressions


>
> Dave,
>
> >I started a very similar response, but realized that with
> >AND, stringa and stringb could be in any order.  It took me
> >a bit, but I believe the following would do it.  Note that
> >it is untested, however.
> >{{stringa}.*{stringb}}|{stringb}.*{stringa}}
>
> Good idea, the same thought came to me only after I had
> sent my answer - as usual in life, we become wise only
> after the event ...
>
> However, for the desired effect, you have to add one more
> "{" to your pattern, after the "|":
>
> {{stringa}.*{stringb}}|{{stringb}.*{stringa}}
>
> I'm beginning to think that a logical "AND" may after all be
> needed.  Imagine you are searching for 3 patterns in one
> line.
> It could be: string1 string2 string3
> But also: string2 string1 string3
>
> Then constructing such a "this way OR the other way round"
> search string will become imposssible - it would be far to
> long and complicated.
>
> Anyone knows a way out of this dilemma?
>
>
> --
> TSEPro Mailing List
> List Maintenance: www.semware.com/html/list.htm
>
>
>


--
TSEPro Mailing List
List Maintenance: www.semware.com/html/list.htm



---
[sawasdi.apana.org.au] (3:800/846.13)
* Origin: apana>>>>>fidonet
SEEN-BY: 633/267 270
@PATH: 800/846 1 640/954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.