In writing some Vimscript to try to answer this question, I was exploring ways to "search for a line with pattern P in position X" (P is a search pattern, X is a number).
One way to do this would be to search for (e.g.)
[a-z] is the pattern, and
5 is the position.
But how would I use Vimscript to make