A regular pattern of lines, arranged in a grid, can be produced with the Grid function.

The Object Radius controls the width of the grid lines in relation to the texture's dimensions.
The Tiling values define the number of grid cells in x and y direction. 2x2 cells are the minimum.
You can let the intersection points of the grid lines become distorted with the Amplify value like that shown in Image 2.