diff --git a/cssify/cssify.py b/cssify/cssify.py index 5f35f36..e9751f3 100755 --- a/cssify/cssify.py +++ b/cssify/cssify.py @@ -5,26 +5,25 @@ from optparse import OptionParser sub_regexes = { - "tag": "([a-zA-Z][a-zA-Z0-9]{0,10}|\*)", - "attribute": "[.a-zA-Z_:][-\w:.]*(\(\))?)", - "value": "\s*[\w/:][-/\w\s,:;.]*" + "tag": r"([a-zA-Z][a-zA-Z0-9]{0,10}|\*)", + "attribute": r"[.a-zA-Z_:][-\w:.]*(\(\))?)", + "value": r"\s*[\w/:][-/\w\s,:;.]*" } validation_re = ( - "(?P" - "(" - "^id\([\"\']?(?P%(value)s)[\"\']?\)" # special case! id(idValue) - "|" - "(?P