stack
V2EX  ›  问与答

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

  •  
  •   stack · Aug 4, 2010 · 3965 views
    This topic created in 5781 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   ·   2760 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:47 · PVG 23:47 · LAX 08:47 · JFK 11:47
    ♥ Do have faith in what you're doing.