What does regex [\0-\uffff] capture?
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
.
精彩评论