开发者

What does regex [\0-\uffff] capture?

开发者 https://www.devze.com 2023-04-10 03:10 出处:网络
As I开发者_如何学Python am reading through someone else\'s JavaScript, I encountered this regex charset:

As I开发者_如何学Python am reading through someone else's JavaScript, I encountered this regex charset:

[\0-\uffff]

What exactly is captured by this?


That logical group will match every Unicode character between null and 0xffff

Nothing will actually be captured. For that you will have to use ( and )


The set of characters whose code is within 0 to 0xffff.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号