What does \d+ mean in regular expression terms?

前端 未结 4 2108
独厮守ぢ
独厮守ぢ 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:24

    \d is called a character class and will match digits. It is equal to [0-9].

    + matches 1 or more occurrences of the character before.

    So \d+ means match 1 or more digits.

提交回复
热议问题