惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
LINUX DO - 热门话题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Project Zero
Project Zero
V
Vulnerabilities – Threatpost
Cisco Talos Blog
Cisco Talos Blog
P
Palo Alto Networks Blog
C
Cisco Blogs
A
Arctic Wolf
月光博客
月光博客
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
量子位
小众软件
小众软件
Latest news
Latest news
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
N
Netflix TechBlog - Medium
K
Kaspersky official blog
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Y
Y Combinator Blog
P
Proofpoint News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
S
Schneier on Security
D
Docker
Scott Helme
Scott Helme
MyScale Blog
MyScale Blog
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
GbyAI
GbyAI
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
H
Help Net Security
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tenable Blog
B
Blog
Know Your Adversary
Know Your Adversary
IT之家
IT之家

博客园 - Lain

Visual studio 2008切换设计视图无响应 远去的自己... 最美的时候... Installing VS 2008 SP1 on Windows 7 如何解决FtpWebRequest基础连接已经关闭:接收时发生错误... 斥候... 普鲁斯特.... 智力题..发月饼... 马太效应... 几种解法.... 稀饭的就是这个.. 将插入的新行放入dataGridView的第一行 阿迪王... 大马士革钢... The English Language visual studio R6034解决方案集 Erro Message in Visual Studio : "automation can't create object" 低位在前... 不能理解...
关于清理文本中的各类空白字符..
Lain · 2009-01-09 · via 博客园 - Lain

关于清理文本中的各类空白字符..

.net framework中的正则表达式 \s

\s等效于[\f\n\r\t\v]的字符分组

\f 换页(FF) 012

\n 换行(LF) 010

\r 回车(CR) 013

\t 水平制表(HT) 009

\v 垂直制表(VT) 011

由于本人处理的数据多与打印相关

而对于印刷和表意文字的空白(这些字符影响打印机)

则没有办法...

个人觉得 visual studio 查找替换中的正则

:Wh

匹配所有类型的空白,如印刷和表意文字的空白。

更加有用...

尤其是对于清理文本

posted on 2009-01-09 16:24  Lain  阅读(331)  评论(0)    收藏  举报

刷新页面返回顶部