It is more helpful to post an example document than paste text into your question. This enables others to see what is actually in your document, especially non-printing characters like paragraph and line breaks.
You should actually be searching for a line/paragraph break followed by Y, otherwise you’ll find every line that includes a Y. That can be done without wild cards.
|