search

Home  >  Q&A  >  body text

javascript - Does the $ symbol in the regular /[0-9]\s$/ mean it ends with a number and a space or a space?

What is the matching range of

$?

为情所困为情所困2841 days ago634

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-05-19 10:48:00

    No, $ matches the end of the string

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-19 10:48:00

    $ 所匹配的是字符串的结尾,/s$/ Matches strings ending with the letter "s"

    reply
    0
  • 阿神

    阿神2017-05-19 10:48:00

    This regex matches strings ending with numbers + spaces

    reply
    0
  • Cancelreply