I have two parts of code in a html variable I am trying to edit. The first part is to set all values of 0 to be have a green font colour. I have done this using the following code.
$Post = $Post.Replace(“html td tag”‘0’html td tag,"html td tagstyle=’ color: green’>0html td tag")
What I am trying to do now is set the same code “any number over 0” to red. I have tried $Post = $Post -replace(“html td tag[1-9]html td tag”,“html td tagstyle=’ color: red>$1html td tag”) but this does not seem to work. Is it not possible to use $1 and $1 in this way or am I just doing it wrong?