regex replace question

  • Thread starter Thread starter Mark_B
  • Start date Start date
M

Mark_B

I am trying to replace any occurance of minus-point "-." with
minus-zero-point "-0."

My regex: Regex repoint_num = new Regex(@"\-\.");

My data: string xyz = "-.9";

My command: repoint_num.Replace(expr, "0.");

The match is detected but the replace does not occur.

I'm stupid I know, but how do I correct this?
 
We have these moments here at Golden Acres:


My (new) command: expr = repoint_num.Replace(expr, "0.");
 
Back
Top