Harlin Seritt wrote: > I am trying to find some matches and have them put into a list when > processing is done. I'll use a simple example like email addresses. > > My input is the following: > wordList = ['myname1', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]', > '[EMAIL PROTECTED]', '[EMAIL PROTECTED]'] > > My regular expression would be something like '[EMAIL PROTECTED]' (I realize > it could and should be more detailed but that's not the point for now).
FYI, matching all compliant email addresses is ridiculously complicated. Before you spend too much time on it, you might want to borrow the complete and thoroughly explained example in Regular Expressions (O'Reilly): http://www.oreilly.com/catalog/regex/ -- http://mail.python.org/mailman/listinfo/python-list