Re: FW: Adding quotes around html attribute values

2007-03-06 Thread Tim Chase
span class=good and half not span class=bad I'm trying to write a regex to add quotes around the ones without. I can do this in perl, but not in vim, and I'd like to know what I'm doing wrong because I've run across this problem before. This was my attempt: :%s/=\([^]\+\)\{-}\([

Re: FW: Adding quotes around html attribute values

2007-03-06 Thread Bill Moseley
On Tue, Mar 06, 2007 at 11:04:11AM -0500, Timothy Adams wrote: Hi, I've been given some html which, oddly, is half in nicely quoted attributes+values: Have you considered using a tool that is designed to fix up your html? Such as HTML Tidy? -- Bill Moseley [EMAIL PROTECTED]

RE: FW: Adding quotes around html attribute values

2007-03-06 Thread Timothy Adams
:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007 2:49 PM To: vim@vim.org Subject: Re: FW: Adding quotes around html attribute values On Tue, Mar 06, 2007 at 11:04:11AM -0500, Timothy Adams wrote: Hi, I've been given some html which, oddly, is half in nicely quoted attributes+values: Have you