Ok, I'm getting my markup under control
Inline styles are fixed! The downside is that I'm having trouble trying to make a regular expression that wants this to be a hyperlink:
"sometext"="http://blah.com/"
The problem is, it'll match too much if there's a quoted string before one of those strings - it'll match from the beginning of the first quote to the end of the second quote. I need some way to say "match a quote, any text until you see another quote, a quote, an equals sign, a quote, and any text until you see another quote". Too late to explain in any more detail now. I'll leave you with the current regex I'm using:
/"(.+?)"[:=]"(.+?)"/=
You can tell that I'm doing HTML escaping before I do my matching
To put it in terms of that, the first captured string is matching too much. Why?
By the way, the regex above works and is currently in use on my weblog. All the links you see are generated by it. Again, the only problem is that it sometimes matches too much, and I'm having trouble making the first captured string stop when it hits the first quote.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):