Select first n columns of a table

@armingrudd ok. But I think that the keyword of this topic is the word “range”.
You’re building a regular expression, a powerful mechanism to generate a list of sequence that are satisfying your pattern.
The fact that all word that match your pattern are sequencially numbers is a detail because you are not defining a range, but only a list. A complete list of values that satisfy the goal.
This approach, according to me, is more complex that to define a single number as boundary, independently by column names.

What do you think about my solution in my first reply?