I built this regular expression to match the letters, numbers, and points of a
point only if they do not repeat successfully
Example:
something.somethnElse.another.then.something
this is a coincidence because the points are separated. but in the following case:
something..thensomething
does not match, because next to each other there is one or more points this is my regexp, I recommend, please, why it does not work
[a-zA-Z0-9\.]+(?!\.{2,})
I also tried
[a-zA-Z0-9\.]+(?![\.]+)
but both of them give correspondence for successful points
Amine source
share