javascript regex to allow at least one special character and one numeric

前端 未结 3 2037
天命终不由人
天命终不由人 2021-01-24 04:43

Im beginer about regex...I need to create a regular expression to check if a string has got at least one special character and one numeric. Im using ([0-9]+[!@#$%\\^&*

3条回答
  •  一生所求
    2021-01-24 05:06

    try this regex expression

    (.*[0-9]+[!@#$%\^&*(){}[\]<>?/|\-]+|.*[!@#$%\^&*(){}[\]<>?/|\-]+[0-9]+)
    

提交回复
热议问题