Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix regexes

  • Loading branch information...
commit 1f47b34684dd796d9f45bc51a6ea667aa568ca7d 1 parent aa1e875
Daniel Erenrich authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 pa4/python-starter/message_features.py
View
6 pa4/python-starter/message_features.py
@@ -14,9 +14,9 @@
NUM_RE = re.compile(r"^([0-9]+)$")
WORD_RE = re.compile(r"^([a-zA-Z'\-]+)$")
ALPHANUM_RE = re.compile(r"^(\w+)$")
-HYPERLINK_RE = re.compile(r"^(http\:\/\/(\w+\.)+\w+)$")
-EMAIL_RE = re.compile(r"^([\w\-\.]+@[\w\-\.]+)$")
-DELIMS_RE = re.compile(r"[\s\.()\"',-:;/\\?!@]+")
+HYPERLINK_RE = re.compile(r"(http\:\/\/(\w+\.)+\w+)")
+EMAIL_RE = re.compile(r"([\w\-\.]+@[\w\-\.]+)")
+DELIMS_RE = re.compile(r"[\s\.()\"',-:;/\\?!@]+")
class MessageFeatures:
Please sign in to comment.
Something went wrong with that request. Please try again.