So I have this string: “ID:300,Order:1,Number:30.99,Other:null}”. I’m using c#.
I would like to use a regex to hide the “30.99” from the Number “parameter”, and replace it with * for security reasons, but I i’m still new with regex and can’t figure it out.
The “Number” can be any decimal form 0 to 999999999…….
The final result would be “ID:300,Order:1,Number:*,Other:null}”
Somebody can help me on this one?
You can do it using Regex.Replace: