jessewth's blog
2008/09/04
C# Remove Chinese Char
string
txtBody =
"中文chinese"
;
txtBody = Regex.Replace(txtBody ,
"[\u4E00-\u9FFF]"
,
""
); // 移除中文
結果
---------------
txtBody : "chinese"
會用到的這regex的原因為是為css裡中文註解,搞到utf-8的網頁變亂碼,索性把css內的所有中文給過濾移除(暴力)。
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
軟體工程的重要的指標
3分鐘的智力測驗
一個糖果有一個糖果紙 一個糖果1元 現在商店在作促銷 3個糖果紙可以換1個糖果 請問 15元最多可以吃幾個糖果?
幾個可以幫助新創業務的線上服務
內容取自 Producthunt =============================== "What's a tool that changed your life?" - us to freelancers on Twitt...
Command line recycle IIS Application Pool
## Use appcmd ### List application pool (find the apppool name) ``` C:\Windows\System32\inetsrv\appcmd.exe list apppool ==== the result ==...
沒有留言:
張貼留言