Regular expression to remove any currency symbol from a string?

前端 未结 2 866
既然无缘
既然无缘 2021-01-13 06:25

I\'m trying to remove any currency symbol from a string value.

using System;
using System.Windows.Forms;
using System.Text.RegularExpressions;

namespace Win         


        
2条回答
  •  被撕碎了的回忆
    2021-01-13 06:37

    The answer from Andrew Hare is almost correct, you can always match digit using \d.*, it will match any digit to your text in question.

提交回复
热议问题