egc> how do i write a regexp for this.. or better yet shd i even be using egc> regexp or is there a better way to do this.... "A team of engineers were faced with a problem; they decided to handle it with regular expressions. Now they had two problems"
Regular expressions are not always the best solution. Others have pointed out how it can work with "if word in line", this approach will do if you're dealing with simple cases. Take a look at this discussion, it is very informative: http://blogs.msdn.com/oldnewthing/archive/2006/05/22/603788.aspx -- http://mail.python.org/mailman/listinfo/python-list