Javascript split regex question

后端 未结 7 1924
小鲜肉
小鲜肉 2020-11-29 21:11

hello I am trying what I thought would be a rather easy regex in Javascript but is giving me lots of trouble. I want the ability to split a date via javascript splitting ei

相关标签:
7条回答
  • 2020-11-29 22:04

    or just use for date strings 2015-05-20 or 2015.05.20

    date.split(/\.|-/);
    
    0 讨论(0)
提交回复
热议问题