Subject: Congratulations: Kohls Gift Card

From: Kohl's Back-To-School Rewards <[email-masked]>
Date: Tue, 12 Aug 2014 14:13:57 -0700

Complete Your Kohl's Survey
 - Claim your $25 Kohl's Gift Card - 

Back to School time is just around the Corner. 

Kohl's brings you amazing new styles with its kid Collections, so you can look and feel great too.

Share your fashion opinion and claim your Kohl's gift card!

All You Need to Do is:

1. Register Here: http://www.opsdozen.com/redeem/kohls/cash.html 
2. Complete the Survey
3. Claim Your Gift Card

To stop getting notifications - go here http://www.opsdozen.com/ekieo/skgt.sjgi5
or write to - Daily Updated Alerts
9306 BOVA CT - Louisville, KY 40291

 Can you please explain how this works, specially the '('s and '?'? I am trying to make a single-pass regex that matches lines with, say alpha, but not containing beta.you'll have to do that in two steps: make sure there's "alpha" somewhere, and make sure there's no "beta". The combined regex would look like: (?m)?=.*alpha)((?!beta).)*$. Note that the (?m) causes ^ and $ to treat start- and end-of-lines to be matched respectively (opposed to start- and end-of-input). Also added an explanation in my answer. Why these are not working in Notepad++ ? , if you need to capture the string (if it passes the test) into a backreference group, you need to wrap an extra set of brackets around the asterisk: ^(((?!hede).)*)$ -- I needed to do this for an Apache redirect rule. Where are the empty strings coming from? Is this how it is represented in regex parlance? Why do they have to resort to such fancy representation
If someone else is also trying this with sed, sed doesn't have lookahead/lookbehind implemented, but any regular expression can be inverted withWhat if I wanted to include another condition - e.g. an alphanumeric string that is at least one character long which also is not "hede"? Thanks- Notepad++ does now support it, I'm using it in this solution impact on performance of the regex? , compared to what?