News for hackers. Stuff that matters.
Re:A Liberal, Accurate Regex Pattern for Matching URLs by kprobst on Friday November 27, 2009 @05:00PM (#964426)
What would be the equivalent in Python to the :punct: character class operator? I don't think the re module supports those. I guess they'd have to be spelled out pretty much?
Re:A Liberal, Accurate Regex Pattern for Matching URLs by kingkilr on Saturday November 28, 2009 @02:56AM (#964937)
I guess that would be re.escape(string.punctuation), I've never looked/thought about it though.
Re:A Liberal, Accurate Regex Pattern for Matching URLs by kprobst on Wednesday December 02, 2009 @04:43PM (#973049)
Figured as much after I played around with making this work. Thanks!