What does the _ in [a-zA-Z0-9_] mean?

前端 未结 5 1960
天命终不由人
天命终不由人 2021-02-18 12:58

What does the underscore mean in the following regex?

[a-zA-Z0-9_]

The _ seems to make no difference so I don\'t understand the purpose

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-18 13:31

    It means to match the underscore character in addition to lowercase letters, uppercase letters, and numbers.

提交回复
热议问题