<script>
window.onload=coloring();
function
coloring()
{
var spans =
document.getElementsByTagName('span'),
obj = {};
var r = /[(]\d+[)]/; /////////pattern will color every number of pattern: (1234)
for (var i = 0, l = spans.length; i < l;
i++) {
obj[spans[i].id] = spans[i].textContent ||
spans[i].innerText;
if (spans[i].innerText.match(r)) {
alert( spans[i].innerText);
spans[i].style.color="#FF0000";
}
}
}
</Script>