in reply to Word boundary in regexp

Untested:
/(?<!\S)$check(?!\S)/