Hello I ' m looking for a regex that not permit write than more star character consecutive and not permit a string with just more star character. for example :
a*g*h* // is allowed
***** // is not allowed
* //is not allowed
*a //. is allowed
in this moment I have this regex :^([^*]*\*{1,2}[^*]*|\*[^*]*\*{1,2}[^*]*|\*\*[^*]+\*{1,2}[^*]*|[^*]*)$
Somebody can help me pls ?