只是好奇知道。我注意到,与“\ 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