Why does the letter é count as a word boundary matching \\b in the following example?
é
\\b
Pattern: /\\b(cum)\\b/i
/\\b(cum)\\b/i
Text:
It will work, when you add the u modifier to your regex
u
/\b(cum)\b/iu
To deal with unicode, replace \b with
\b
/(?<=^|\PL)(cum)(?=\PL|$)/i