<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[PPT中复制代码，代码里有空格，如何去掉全角空格？]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 19 Aug 2011 07:02:39 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;有时候复制网上的代码会出现编译不通过的问题，报类似这样的一个问题：error: stray &#039;&#92;161&#039; in program。在网上查了一下，就是全角空格全角引号全角单引号的问题。借助于网上的一段Java代码，把它转换成了C#的代码，并制作了一个小工具，用于去除全角空格。原理是从文字的字节码中将全角空格的字节码(161)替换为半角空格的字节码(32)，觉得能通过PHP能去的，找了下，也有的：<br/>http://liuyinfang666.blog.163.com/blog/static/58590920107311105675/<br/><br/>去掉所有的标点(包括全角半角)&nbsp;&nbsp;:<br/><textarea name="code" class="html" rows="15" cols="100">
public static String execute2(String source)&#123;
&nbsp;&nbsp;String regex=&quot;[｀＝＜＞｜＋＾＄～]&quot;;
&nbsp;&nbsp; String reg=&quot;&quot;;
&nbsp;&nbsp; reg=source.replaceAll(&quot; &quot;,&quot;&quot;);
&nbsp;&nbsp; reg=reg.replaceAll(&quot;&#92;&#92;p&#123;Punct&#125;&quot;,&quot;&quot;);
&nbsp;&nbsp; reg=reg.replaceAll(&quot;&#92;&#92;pP&quot;, &quot;&quot;);
&nbsp;&nbsp; reg=reg.replaceAll(&quot;&#92;&#92;p&#123;P&#125;&quot;, &quot;&quot;);
&nbsp;&nbsp; for(int i=0;i&lt;reg.length();i++)&#123;
&nbsp;&nbsp;&nbsp;&nbsp;String tem=reg.substring(i,i+1);
&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(tem+&quot; &quot;+i);
&nbsp;&nbsp;&nbsp;&nbsp;if(tem.matches(regex))&#123;
&nbsp;&nbsp;&nbsp;&nbsp; reg=reg.replaceAll(tem,&quot;&quot;);
&nbsp;&nbsp;&nbsp;&nbsp; i=0;
&nbsp;&nbsp;&nbsp;&nbsp;&#125;
&nbsp;&nbsp; &#125;
&nbsp;&nbsp;return reg;
 &#125;
</textarea><br/>以上Code来源：http://liuxiangdong100.blog.163.com/blog/static/2261943820089252914165/
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] PPT中复制代码，代码里有空格，如何去掉全角空格？]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>