Regex to test whether a string is 'Road##' in Javascript

后端 未结 0 736
我寻月下人不归
我寻月下人不归 2021-01-26 22:53

I want to test whether a string has a form of Road1 Currently I have this:

const startsWithLayout = /^Road/.test(this.name);
const endsWithDigit = /[         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题