/\bword\b/ looks for the word word , not for the string defined by the variable word . Just change this regex to /\b#{pattern}\b/ or possibly ...
確定! 回上一頁