[jQuery] Re: Regular Expression that works everywhere but in jQuery

2009-03-07 Thread Karl Swedberg
On Mar 7, 2009, at 4:20 PM, ricardobeat wrote: this seems to work: scrubbed = code.html().replace(/]*-->/gi,""); I don't think that is going to work, either (at least, it didn't for me in firebug). You're probably expecting the character set, [^-->], to negate the string "-->", but it d

[jQuery] Re: Regular Expression that works everywhere but in jQuery

2009-03-07 Thread ricardobeat
this seems to work: scrubbed = code.html().replace(/]*-->/gi,""); The expression you had would eat everything between the first "". There's probably a more elegant way to do it, but I can't help any further. cheers, - ricardo On Mar 6, 4:10 pm, Adam wrote: > Hey there, > > I'm trying to use J