擅长:python、mysql、java
<p><a href="http://www.opensource.apple.com/source/pcre/pcre-4.2/pcre/pcrecpp.h" rel="nofollow">pcrecpp::RE</a>类使用<code>/</code>作为分隔符(<em>我相信。。</em>)。语法与Perl非常相似</p>
<p>所以你很可能需要避开正斜杠来解决你的问题。你知道吗</p>
<pre><code>pcrecpp::RE re("(?<![\\/\\s,-])\\s+(?![\\/\\s,-])").PartialMatch("foo bar")
</code></pre>