user從前端輸入值,在後端時對輸入的內容值,用Regex過濾掉非字元或數字的各種符號。
Regex.Replace(Status.CustProduct, @"[\W_]+", ";");
Ref:
微軟官方
微軟Regex
The Will Will Web
Regex.Replace(Status.CustProduct, @"[\W_]+", ";");
Our flagship theme is highly customizable through the options panel, so you can modify the design, layout and typography.
沒有留言:
張貼留言
問題沒有大小或好壞