search

Home  >  Q&A  >  body text

javascript - How to write regular expression

1. The existing numbers to be entered are: 01,03,05,07,09,11,13,15...numbers arranged in this way.
2. There is an input box in which only such numbers are allowed to be entered, separated by commas. How to write the regular expression.

伊谢尔伦伊谢尔伦2763 days ago985

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-06-28 09:29:38

    If the strict requirement is to increase the sequence, regularization is difficult to implement.

    This is the previous answer, please refer to it.
    Continuous ascending and descending letters or numbers


    reply
    0
  • 迷茫

    迷茫2017-06-28 09:29:38

    /^\d+[13579](,\d+[13579])*$/

    reply
    0
  • Cancelreply