Deployment task '[5.1.4] **Configure Redis, service bus and Update Databases and Samples**'
with id '04d8e453-7f22-420d' and with scenario_id '9349bff9-9e41-4c26-9a90'
鉴于上述文本,我需要一个正则表达式,它应该给出这个输出:
Configure Redis, service bus and Update Databases and Samples
答案 0 :(得分:3)
假设文本以单引号结尾,这是您正在寻找的正则表达式:
chrome.tabs.query({
active: true,
lastFocusedWindow: true
}, function (tabs) {
// use first tab to obtain url
var tab = tabs[0];
var url = tab.url
});
以下是一个如何获取值的示例:
Deployment task '\[.*?\]\s*([^']+)