How I validate not allow repeat two dash (--) after specific string 0-1P:
^\w0-1P(?:([\w-])
Example:
10-1P-8 will valid
10-1Pabc-- will invalid (because has twodash)
z0-1PDTD--SDSA-- will invalid (because has twodash repeat twice time)
Link my regular expression but it valid threedash(---), how can i fix it.