stack
V2EX  ›  问与答

请问怎么样用一个正则式表示,组成一个任意组合

  •  
  •   stack · Aug 4, 2010 · 4104 views
    This topic created in 5841 days ago, the information mentioned may be changed or developed.
    1. a11
    2. b22
    3. c33
    4. a11b22
    5. b22c33
    6. a11c33
    7. a11b22c33
    8. b22a11c33
    9. c33b22a11
    请问怎么样用一个正则式表示,字母为非捕获组,数字为捕组,第一个表达为
    1. (?<a>)[0-9]+
    2. (?<b>)[0-9]+
    3. (?<c>)[0-9]+
    4. (?<a>)[0-9]+(?<b>)[0-9]+
    5. ...(略)
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2782 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:41 · PVG 15:41 · LAX 00:41 · JFK 03:41
    ♥ Do have faith in what you're doing.