How does {m}{n} (“exactly n times” twice) work?

前端 未结 7 489
自闭症患者
自闭症患者 2021-02-03 16:23

So, some way or another (playing around), I found myself with a regex like \\d{1}{2}.

Logically, to me, it should mean:

(A digit exac

7条回答
  •  借酒劲吻你
    2021-02-03 17:19

    IEEE-Standard 1003.1 says:

    The behavior of multiple adjacent duplication symbols ( '*' and intervals) produces undefined results.

    So every implementation can do as it pleases, just don't rely on anything specific...

提交回复
热议问题