Regular matching does not contain all other five digits of 233,2333 and 23333

this is the only thing I can think of right now

/^[134567890][124567890]{0,4}$/

this first bit is 2 or the other bit is 3 does not match, is there any good way

bilibili"s on-screen rules written by himself, so he can only use one sentence as a rule.

Apr.03,2021

match 0 to 5 digits

let reg = /^((?!23{2,})\d){0,5}$/

it should be like this / ^ (?! 23 {2pr 4}\ b)\ d {1jue 5} $/ , please try to verify the highly liked answer with 23334 or 2334.
Test data

2333
23333
233
23334
2334
234
23
23423
5823
123
1
32
vv234
s2324
0

this kind of requirement is also rare, and it is difficult to match in the forward direction, so reverse matching is recommended.

var str = '2333';
var res = /(233+)/.test(str);
if(!res){
    console.log('')
}else{
    console.log('')
}

think carefully about your requirements and add a sentence to judge the length

var str = '1233322';
var res = /(233+)/.test(str);
if(res && str.length <= 5){
    console.log('')
}else{
    console.log('')
}

var arr=['1','12345','12334','12333','23333'];
    var reg=/^(?!\d*23{2,})\d{5}$/;
    console.log(arr.filter(item=>reg.test(item)))

try this

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-1e4c742-4d251.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-1e4c742-4d251.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?