Some words are lost with regex.matches when pattern use word boundaries

Thank you for this information. I'll adapt my code.