这个简单的正则表达式匹配在每个浏览器上返回一个字符串而不是一个对象,但最新的 firefox...
text = "language. Filename: My Old School Yard.avi. File description: File size: 701.54 MB. View on Megavideo. Enter this, here:"
name = text.match(/(Filename:)(.*) File /);
alert(typeof(name));
据我所知,匹配函数应该返回一个对象(数组)。有没有人遇到过这个问题?