我希望能够使用正则表达式在字符串中查找时间范围,然后将它们包装在 <span> 中。时间范围的格式如下:
Hello, I would like to meet between 9:00-12:00 but also 1:00-6:00 would work for me. Thank you.
我希望最终输出为:
Hello, I would like to meet between <span>9:00-12:00</span> but also <span>1:00-6:00</span> would work for me. Thank you.