Re: Regular expression to match a #

2005-08-11 Thread Tom Deco
Thanks, That did the trick... -- http://mail.python.org/mailman/listinfo/python-list

Regular expression to match a #

2005-08-11 Thread Tom Deco
Hi, I'm trying to use a regular expression to match a string containing a # (basically i'm looking for #include ...) I don't seem to manage to write a regular expression that matches this. My (probably to naive) approach is: p = re.compile(r'\b#include\b) I also tried p = re.compile(r'\b\#includ