我想把字符串my:ReportCreateTime20090723155905/my:ReportCreateTime中的my:ReportCreateTime和/my:ReportCreateTime之间的字符串提取出来,如何实现?
[code="IRB"]
irb(main):001:0> s = 'my:ReportCreateTime20090723155905/my:ReportCreateTime'
=> "my:ReportCreateTime20090723155905/my:ReportCreateTime"
irb(main):007:0> s.match(/<.*?>(.*?)<\/.*?>/)[1]
=> "20090723155905"
[/code]