开发者

Regex case insensitive

开发者 https://www.devze.com 2023-03-06 01:48 出处:网络
How do I put this regex in case insensitive? var message_id = result.match(/Message-Id\\:(.*)/)[1].replace(/^\\s+/, \'\');

How do I put this regex in case insensitive?

var message_id = result.match(/Message-Id\:(.*)/)[1].replace(/^\s+/, '');
开发者_开发知识库

Thanks


With the i flag:

/Message-Id\:(.*)/i
//                ^

Documentation →

0

精彩评论

暂无评论...
验证码 换一张
取 消