##################################################
# Look for subject line and pull the subject out
# to see if its 'subscribe' or 'unsubscribe'
##################################################
#
if (/^Subject:(.*)/) {
$subject = $1;
$subject =~ s/^[ \t]*//;
$subscribing = scalar(grep(/^\s*subscribe/i,$subject));
$unsubscribing = scalar(grep(/^\s*unsubscribe/i,$subject));
}
Can anyone help me out here? I have read what little documentation
there is on regular expressions in Python, and since I am not an Emacs
guru I haven't been able to draw on any knowledge in that area...
Is there a way to use the regex.set_syntax call to make Pythons regex
behave more like perl's? Has anyone written a perl regular expression
module for python?
If there is a WWW server with some decent documentation on the regular
expression syntax used in Python?
Thanks very much!
rjf
-- | "I don't like being bluffed -- makes me doubt | rjf@aurora.pcg.com | | my perception of reality..." | 71722,3175 | | Chris in the morning on KBHR | | +---------------------------------------------------+-----------------------+