Range.search with ignore new lines option - Word online
Searching for text in office JS is not that flexible. You cannot search for text that has a new line within it in the document. for example what if you want to search for " Hello World! " and in the document what you have is " Hello
World!". It won't work, I searched for a way to ignore newlines in the Word.SearchOptions but I didn't find it.