Hi all - a regex newbie here:
I have a little Ajax script and I'm trying to remove some CSS elements from a DIV tag and I'm have a bit of trouble with the Regex. Right now I'm trying to remove the z-index attribute. It can look something like any of these:
Here's what I'm using right now:
It replaces z-index: 0; just fine but I can't find the correct modifiers to make it work for 2, 3 or 4 digit z-indexes. Any ideas would be much appreciated. Thanks!
document.getElementById('right_column').innerHTML.replace(/z-index: [0-9]; /gi, "replaced"));