只是好奇知道。我注意到,與「\ B」正則表達式邊界和字符串'c#'
if (preg_match('@\bC#\[email protected]', $userSkills)) {...
但是使用它,如果我刪除「\ B」它設法找到字符串時,我的正則表達式無法找到字符串「C#」。
有人知道這裏可能是什麼問題嗎?
字符串以查找匹配:
Unified Communications Design Specialist ~$~ Windows 95 or 98 ~$~ Windows 2000
or XP ~$~ Linux ~$~ Visual Basic ~$~ ASP Net ~$~ C# ~$~ Contact Center Design
Specialist ~$~ Internet Programming ~$~ Object oriented programming ~$~
Databases ~$~ Unified Commucations ~$~ Contact Center Solutions ~$~
Junior Developer ~$~ Solutions Engineer
你在正則表達式中使用了哪一個?'\ b'或'/ b'? – 2013-02-11 14:25:48
我發佈了我試圖找到匹配的字符串。它適用於除c#之外的所有字符串,據我注意到 – vodich 2013-02-11 14:47:52