我正在Ubuntu 18.04上使用Sublime Text 3。我需要在项目目录中的100多个页面中进行搜索和替换。如果可能的话,我想使用正则表达式来做到这一点,但是我不知道该怎么做。
我想找到func performSegueIfAllAreSelected() {
if isFirstCollectionViewSelected, isSecondCollectionViewSelected, isThirdCollectionViewSelected {
if self.firstSelectedIndex == 1 {
self.performSegue(withIdentifier: "ShowNextView", sender: nil)
} else {
//
}
}
}
,其中tabindex="nbr"
是实际数字。即:nbr
。我想用tabindex="2"
替换每个实例。
我已经尝试过了:
tabindex="0"
但这不起作用。我弹出Find: tabindex="\d"
Where: /home/me/path/to/project/
Replace: tabindex="0"
。我已经尝试过其他带有相同0 matches found
消息的正则表达式。
这必须比我做起来容易。
谢谢您的建议。