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" <[email protected]>
> Reply-To: For Users of ASSP <[email protected]>
> Date: Wed, 02 Jun 2010 09:08:39 -0400
> To: For Users of ASSP <[email protected]>
> 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 <[email protected]>
>> Organization: Eric Shubert & Associates
>> Reply-To: For Users of ASSP <[email protected]>
>> Date: Tue, 01 Jun 2010 11:56:50 -0700
>> To: <[email protected]>
>> 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
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/assp-user
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Assp-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/assp-user
------------------------------------------------------------------------------
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user