1
I want to validate this regex:
- regex.test.test.test.test
- -regex.test.test.test.test
- +regex.test.test.test.test
- If you take a trace from the beginning to the word, I want this regex to be invalidated.
- If there is no point between words within that string, let it be invalidated also.
- That is, the trace, the point, the sign of
+
, is all a structure that has to be placed correctly, as above. If you change the default form, this regex will no longer be valid.
That is, it is infinite, for example, if I put thousands of dots, but only one dot is changed, that is invalidated all.
I was trying here, but the way I do it is finite and seems to contain many errors.
(-\s{1}\w+.\w+.\w+.\w+.\w+)|(-\s{1}-\w+.\w+.\w+.\w+.\w+)|(-\s{1}[+]\w+.\w+.\w+.\w+.\w+)
How do I generate the structure of this regex, it can be infinite and only valid with correct structure?
Fantastic the simplicity
– sYsTeM