Remember that {4}
is supposed to be added after
the character class, not inside.
Anyway, if you want to match "all text except 1970", you can use the following regex:
([^d]|(?<!d)d(?!d{3}(?!d))d*)?
see demo.
This regex matches:
- a non-digit character or
- a digit char that is nor preceded by another digit and it is not followeb by exactly 3 digits
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…