Maximum Hex value in regex

前端 未结 5 980
南旧
南旧 2021-02-12 13:27

Without using u flag the hex range that can be used is [\\x{00}-\\x{ff}], but with u flag it goes up to a 4-byte value \\x{7fffffff}

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-12 13:58

    "but want to know about the max hex boundary in a regex": * in all utf modes: 0x10ffff * native 8-bt mode: 0xff * native 16-bit mode: 0xffff * native 32-bit mode: 0x1fffffff

提交回复
热议问题