A
ASP.Confused
Ok. I have the following regular expression:
re.Pattern = "style[^=]*=[^\""]*\""[^\""]*\"""
It will grab any style attribute within HTML that uses double quotes, and
put it in the re.Matches collection.
Now, I want to include single quotes into this regular expression. Here's
what I have so far:
re.Pattern = "style[^=]*=[^\""']*(\""|\')[^\1]*\1"
but it does not work. Got any suggestions?
re.Pattern = "style[^=]*=[^\""]*\""[^\""]*\"""
It will grab any style attribute within HTML that uses double quotes, and
put it in the re.Matches collection.
Now, I want to include single quotes into this regular expression. Here's
what I have so far:
re.Pattern = "style[^=]*=[^\""']*(\""|\')[^\1]*\1"
but it does not work. Got any suggestions?