Re: [Assp-user] Regex help please.

2010-06-03 Thread Paul K. Dickson
Yeah, I've given up.  I'm just going back to (value|value|value).


 From: K Post nntp.p...@gmail.com
 Reply-To: For Users of ASSP assp-user@lists.sourceforge.net
 Date: Wed, 2 Jun 2010 16:25:35 -0400
 To: For Users of ASSP assp-user@lists.sourceforge.net
 Subject: Re: [Assp-user] Regex help please.
 
 I don't think there is a way, especially if Fritz, the hands down
 expert, isn't giving you anything other than repeating sales at the
 beginning of each line.
 
 It's not like the parser can read your mind an know if you meant to continue
 from the last line or if you're starting a new expression...  It would be
 great if there was some magic _ character or something that let the parser
 know that you're continuing, I just don't think that anything like that
 exists.
 
 On Wed, Jun 2, 2010 at 1:29 PM, Paul K. Dickson 
 pdick...@frederickcountymd.gov wrote:
 
 Correct.
 
 There must be a way to do it.
 
 
 Paul K. Dickson
 Systems Administrator
 Interagency Information Technologies
 Frederick County Government
 Frederick, MD 21701
 pdick...@frederickcountymd.gov
 301-600-2399/x12399
 
 
 
 From: K Post nntp.p...@gmail.com
 Reply-To: For Users of ASSP assp-user@lists.sourceforge.net
 Date: Wed, 2 Jun 2010 13:22:02 -0400
 To: For Users of ASSP assp-user@lists.sourceforge.net
 Subject: Re: [Assp-user] Regex help please.
 
 Just so that I understant, you're not looking for an email that has:
 
 Sales test
 Anotherword
 Stotoblock
 Ihatespam
 
 but instead anthing that is either:
 Sale test
 Sales anotherword
 etc...
 and you only want the regex to be multiline so that it's easier to edit
 in
 the admin interface?  (I don't think that's doable)
 
 On Tue, Jun 1, 2010 at 2:41 PM, Paul K. Dickson 
 pdick...@frederickcountymd.gov wrote:
 
 For ease of administration/review I want to have a regex that will allow
 1
 value per line.  A random example:
 
 Sales\s(\btest\b
 Anotherword
 Stufftoblock
 Ihatespam)
 
 Instead of:
 Sales\s(\btest\b|anotherword|stufftoblock|ihatespam)
 
 
 Does anyone know how to do this off the top of their head?
 
 
 
 
 
 
 -
 
 -
 
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user
 
 
 
-
-
 
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user
 
 
 
 
-
-
 
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user
 
 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user


Re: [Assp-user] Regex help please.

2010-06-02 Thread Paul K. Dickson
Thanks for the suggestion.  That is only going to specify that the item has
a carriage return after it in the email, which most will not.




 From: Eric Shubert e...@shubes.net
 Organization: Eric Shubert  Associates
 Reply-To: For Users of ASSP assp-user@lists.sourceforge.net
 Date: Tue, 01 Jun 2010 11:56:50 -0700
 To: assp-user@lists.sourceforge.net
 Subject: Re: [Assp-user] Regex help please.
 
 Paul K. Dickson wrote:
 For ease of administration/review I want to have a regex that will allow 1
 value per line.  A random example:
 
 Sales\s(\btest\b
 Anotherword
 Stufftoblock
 Ihatespam)
 
 Instead of: 
 Sales\s(\btest\b|anotherword|stufftoblock|ihatespam)
 
 
 Does anyone know how to do this off the top of their head?
 
 
-
-
 
 Have you tried escaping the cr at the end of each line? As in:
 Sales\s(\btest\b\
 Anotherword\
 Stufftoblock\
 Ihatespam)
 
 -- 
 -Eric 'shubes'
 
 
 --
 
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user


--

___
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user


Re: [Assp-user] Regex help please.

2010-06-02 Thread Paul K. Dickson
Figured it out using one of Thomas's prior emails for reference.  For anyone
who is interested:

(http\:\/\/|@)[^/\s]*(?=.*?(discount
sale
coupon
))\.(com|net|org)(\s(\r|$)|\/|\:\d{1,5}\/|\.\s\s?\w|\.?\r)



Starting with (?=.*?(  and ending with )) is the bit that did it.




 From: Paul K. Dickson pdick...@frederickcountymd.gov
 Reply-To: For Users of ASSP assp-user@lists.sourceforge.net
 Date: Wed, 02 Jun 2010 09:08:39 -0400
 To: For Users of ASSP assp-user@lists.sourceforge.net
 Subject: Re: [Assp-user] Regex help please.
 
 Thanks for the suggestion.  That is only going to specify that the item has
 a carriage return after it in the email, which most will not.
 
 
 
 
 From: Eric Shubert e...@shubes.net
 Organization: Eric Shubert  Associates
 Reply-To: For Users of ASSP assp-user@lists.sourceforge.net
 Date: Tue, 01 Jun 2010 11:56:50 -0700
 To: assp-user@lists.sourceforge.net
 Subject: Re: [Assp-user] Regex help please.
 
 Paul K. Dickson wrote:
 For ease of administration/review I want to have a regex that will allow 1
 value per line.  A random example:
 
 Sales\s(\btest\b
 Anotherword
 Stufftoblock
 Ihatespam)
 
 Instead of: 
 Sales\s(\btest\b|anotherword|stufftoblock|ihatespam)
 
 
 Does anyone know how to do this off the top of their head?
 
 
 
-

 -
 
 Have you tried escaping the cr at the end of each line? As in:
 Sales\s(\btest\b\
 Anotherword\
 Stufftoblock\
 Ihatespam)
 
 -- 
 -Eric 'shubes'
 
 
 
-
-
 
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user
 
 
 --
 
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user


--

___
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user


Re: [Assp-user] Regex help please.

2010-06-02 Thread Paul K. Dickson
NM.  Still isn't working :(





 From: Paul K. Dickson pdick...@frederickcountymd.gov
 Reply-To: For Users of ASSP assp-user@lists.sourceforge.net
 Date: Wed, 02 Jun 2010 11:28:07 -0400
 To: For Users of ASSP assp-user@lists.sourceforge.net
 Subject: Re: [Assp-user] Regex help please.
 
 Figured it out using one of Thomas's prior emails for reference.  For anyone
 who is interested:
 
 (http\:\/\/|@)[^/\s]*(?=.*?(discount
 sale
 coupon
 ))\.(com|net|org)(\s(\r|$)|\/|\:\d{1,5}\/|\.\s\s?\w|\.?\r)
 
 
 
 Starting with (?=.*?(  and ending with )) is the bit that did it.
 
 
 
 
 From: Paul K. Dickson pdick...@frederickcountymd.gov
 Reply-To: For Users of ASSP assp-user@lists.sourceforge.net
 Date: Wed, 02 Jun 2010 09:08:39 -0400
 To: For Users of ASSP assp-user@lists.sourceforge.net
 Subject: Re: [Assp-user] Regex help please.
 
 Thanks for the suggestion.  That is only going to specify that the item has
 a carriage return after it in the email, which most will not.
 
 
 
 
 From: Eric Shubert e...@shubes.net
 Organization: Eric Shubert  Associates
 Reply-To: For Users of ASSP assp-user@lists.sourceforge.net
 Date: Tue, 01 Jun 2010 11:56:50 -0700
 To: assp-user@lists.sourceforge.net
 Subject: Re: [Assp-user] Regex help please.
 
 Paul K. Dickson wrote:
 For ease of administration/review I want to have a regex that will allow 1
 value per line.  A random example:
 
 Sales\s(\btest\b
 Anotherword
 Stufftoblock
 Ihatespam)
 
 Instead of: 
 Sales\s(\btest\b|anotherword|stufftoblock|ihatespam)
 
 
 Does anyone know how to do this off the top of their head?
 
 
 
 
-

 
 -
 
 Have you tried escaping the cr at the end of each line? As in:
 Sales\s(\btest\b\
 Anotherword\
 Stufftoblock\
 Ihatespam)
 
 -- 
 -Eric 'shubes'
 
 
 
 
-

 -
 
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user
 
 
 
-
-
 
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user
 
 
 --
 
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user


--

___
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user


Re: [Assp-user] Regex help please.

2010-06-02 Thread K Post
Just so that I understant, you're not looking for an email that has:

Sales test
Anotherword
Stotoblock
Ihatespam

but instead anthing that is either:
Sale test
Sales anotherword
etc...
and you only want the regex to be multiline so that it's easier to edit in
the admin interface?  (I don't think that's doable)

On Tue, Jun 1, 2010 at 2:41 PM, Paul K. Dickson 
pdick...@frederickcountymd.gov wrote:

 For ease of administration/review I want to have a regex that will allow 1
 value per line.  A random example:

 Sales\s(\btest\b
 Anotherword
 Stufftoblock
 Ihatespam)

 Instead of:
 Sales\s(\btest\b|anotherword|stufftoblock|ihatespam)


 Does anyone know how to do this off the top of their head?




 --

 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user

--

___
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user


Re: [Assp-user] Regex help please.

2010-06-02 Thread Fritz Borgstedt
For Users of ASSP  assp-user@lists.sourceforge.net schreibt:
Sales\s(\btest\b|anotherword|stufftoblock|ihatespam)

Sales\s\btest\b
Sales\sanotherword
Sales\sstufftoblock
Sales\sihatespam


--

___
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user


Re: [Assp-user] Regex help please.

2010-06-02 Thread Paul K. Dickson
Correct.  

There must be a way to do it.


Paul K. Dickson
Systems Administrator
Interagency Information Technologies
Frederick County Government
Frederick, MD 21701
pdick...@frederickcountymd.gov
301-600-2399/x12399



 From: K Post nntp.p...@gmail.com
 Reply-To: For Users of ASSP assp-user@lists.sourceforge.net
 Date: Wed, 2 Jun 2010 13:22:02 -0400
 To: For Users of ASSP assp-user@lists.sourceforge.net
 Subject: Re: [Assp-user] Regex help please.
 
 Just so that I understant, you're not looking for an email that has:
 
 Sales test
 Anotherword
 Stotoblock
 Ihatespam
 
 but instead anthing that is either:
 Sale test
 Sales anotherword
 etc...
 and you only want the regex to be multiline so that it's easier to edit in
 the admin interface?  (I don't think that's doable)
 
 On Tue, Jun 1, 2010 at 2:41 PM, Paul K. Dickson 
 pdick...@frederickcountymd.gov wrote:
 
 For ease of administration/review I want to have a regex that will allow 1
 value per line.  A random example:
 
 Sales\s(\btest\b
 Anotherword
 Stufftoblock
 Ihatespam)
 
 Instead of:
 Sales\s(\btest\b|anotherword|stufftoblock|ihatespam)
 
 
 Does anyone know how to do this off the top of their head?
 
 
 
 
 
-
-
 
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user
 
 --
 
 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user


--

___
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user


Re: [Assp-user] Regex help please.

2010-06-02 Thread K Post
I don't think there is a way, especially if Fritz, the hands down
expert, isn't giving you anything other than repeating sales at the
beginning of each line.

It's not like the parser can read your mind an know if you meant to continue
from the last line or if you're starting a new expression...  It would be
great if there was some magic _ character or something that let the parser
know that you're continuing, I just don't think that anything like that
exists.

On Wed, Jun 2, 2010 at 1:29 PM, Paul K. Dickson 
pdick...@frederickcountymd.gov wrote:

 Correct.

 There must be a way to do it.


 Paul K. Dickson
 Systems Administrator
 Interagency Information Technologies
 Frederick County Government
 Frederick, MD 21701
 pdick...@frederickcountymd.gov
 301-600-2399/x12399



  From: K Post nntp.p...@gmail.com
  Reply-To: For Users of ASSP assp-user@lists.sourceforge.net
  Date: Wed, 2 Jun 2010 13:22:02 -0400
  To: For Users of ASSP assp-user@lists.sourceforge.net
  Subject: Re: [Assp-user] Regex help please.
 
   Just so that I understant, you're not looking for an email that has:
 
  Sales test
  Anotherword
  Stotoblock
  Ihatespam
 
  but instead anthing that is either:
  Sale test
  Sales anotherword
  etc...
  and you only want the regex to be multiline so that it's easier to edit
 in
  the admin interface?  (I don't think that's doable)
 
  On Tue, Jun 1, 2010 at 2:41 PM, Paul K. Dickson 
  pdick...@frederickcountymd.gov wrote:
 
  For ease of administration/review I want to have a regex that will allow
 1
  value per line.  A random example:
 
  Sales\s(\btest\b
  Anotherword
  Stufftoblock
  Ihatespam)
 
  Instead of:
  Sales\s(\btest\b|anotherword|stufftoblock|ihatespam)
 
 
  Does anyone know how to do this off the top of their head?
 
 
 
 
 

 -
 -
 
  ___
  Assp-user mailing list
  Assp-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/assp-user
 
 
 --
 
  ___
  Assp-user mailing list
  Assp-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/assp-user



 --

 ___
 Assp-user mailing list
 Assp-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-user

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user


Re: [Assp-user] Regex help please.

2010-06-01 Thread Eric Shubert
Paul K. Dickson wrote:
 For ease of administration/review I want to have a regex that will allow 1
 value per line.  A random example:
 
 Sales\s(\btest\b
 Anotherword
 Stufftoblock
 Ihatespam)
 
 Instead of: 
 Sales\s(\btest\b|anotherword|stufftoblock|ihatespam)
 
 
 Does anyone know how to do this off the top of their head?
 
 --

Have you tried escaping the cr at the end of each line? As in:
Sales\s(\btest\b\
Anotherword\
Stufftoblock\
Ihatespam)

-- 
-Eric 'shubes'


--

___
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user