What does \d+ mean in regular expression terms?

前端 未结 4 2037
独厮守ぢ
独厮守ぢ 2021-01-31 02:04

I\'m new to regular expressions and came accros the following \\d+ . I do not exactly know what this means, please point me in the right direction.

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-31 02:34

    \d means 'digit'. + means, '1 or more times'. So \d+ means one or more digit. It will match 12 and 1.

提交回复
热议问题