Please help to write a js regular expression.

1. Full number
2. Can be positive or negative.
3. Maximum 0.9999, minimum-0.9999
4. Only four decimal places are retained.
! ~ Thank you! I can"t fix it for a long time. Hey! > _

Mar.16,2021

re=/^\-?0+\.?\d{0,4}$/

/-0.d {0jue 4} /


/ ^\ -? 0 (?:\.\ d {1Magne4})? $/

/^\-?0(?:\.\d{1,4})?$/.test(-0.9999)  true
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b367d7-4ec81.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b367d7-4ec81.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?