Category Archives: python programming

An Extension for Python re: regex

One thing I dislike about python is how painful it is to use regular expressions that capture matching groups of characters. For example, if I want to find words in quotes, I would write: quotedWordPattern = re.compile(r'”([^”]+)”(.*)’) match = quotedWordPattern(text) … Continue reading

Posted in python programming | Tagged , , , , , | Leave a comment