我在 linux bash 上运行了以下命令:
apt-cache search 'hex.*(view|edit)'
我的目的是找到名称/描述包含模式“hex.*(view|edit)”的任何软件包。但在我得到的结果中:
kipi-plugins - image manipulation/handling plugins for KIPI aware programs
这怎么会出现在结果列表中?我在这个结果中没有看到任何匹配的字符串。这是apt-cache search
命令的错误吗?还是我误解了这个命令如何使用正则表达式?