I want to find '106'. But it can't be in a longer number like 21067 nor can it be in a text string like y106M. But I also want to find it if it is at the beginning, or the end of line, or if it is the line.
So these lines are out:
106M 1106 106in a string is bad even if it starts the line And it may finish with the target but not as the tail of a string106
but these are in:
106 something else another 106 And of couse "106' will work as well I just want 106 to show up but not embedded in other numbers or text but it's OK is the end of the line is 106 106 may also start the line
I have tried the following search string and many variations of it:
(^|[^0-9A-Za-z])106($|[^0-9A-Za-z])
I'm new-ish to regex, and I likely don't have a handle on how the anchor characters work.