I would like to know if this regular expression is correct to verify that the line does not start with a point, does not end with a point and contains at least one point anywhere, but not the beginning or end:
My problem is that I cannot figure out how to check if there are 2 dots in a row.
/ ^ ([^.]) + ([.]) +. * ([^.]) $ /
source
share