How can I combine multi regex together in javascript?
I have 3 regexes and want to combine them together.
const VALUE="qwer1234"
const pattern1 = /^.{5,20}/
const pattern2 = /[a-zA-Z]/
const pattern3 = /\d/
if(pattern1.test(VALUE) && pattern2.test(VALUE) && pattern3.test(VALUE)){
// do something...
}
I tried and could not solve it. thanks in advance.