I am not sure if this is exactly possible. Consider this example set of data:
Mountain Big mountain Mountain of stone A mountain on a hill
If you have a string that contains multiple lines, the following two regular expressions may help:
\r\nWORD\r\n|^WORD\r\n|\r\WORD$|^WORD$ \r\nA\sPHRASE\r\n|^A\sPHRASE\r\n|\r\A\sPHRASE$|^A\sPHRASE$