Nota Bene: , .
-----
Python:
import re
pat = '(?:(.)(?!.*?\\1.*?\\1.*?\\1.*\Z))+\Z'
regx = re.compile(pat)
for s in (':1*2-3=4@',
':1*1-3=4@5',
':1*1-1=4@5!6',
':1*1-1=1@',
':1*2-a=14#a~7&1{g}1'):
m = regx.match(s)
if m:
print m.group()
else:
print '--No match--'
:1*2-3=4@
:1*1-3=4@5
:1*1-1=4@5!6
--No match--
--No match--
, , , , , , .
, -.