询问 solaris 的正则表达式

Ask RegEx for solaris

有谁知道这些条件的格式是什么?

bin::2:root,daemon

2

2

yes

我只想要 root、daemon 和 yes 值,在某些情况下 yes 会更改为 no。

欢迎来到 Whosebug 本,

你的问题不是很清楚,但这就是你要找的吗?如果您向我们提供更多信息,我们将更容易提供帮助。

bin::\d+:(root,daemon) \d+ \d+ (yes)

示例:https://regex101.com/r/pauXBb/5

它在第一个捕获组中存储 root, daemon,在第二个捕获组中存储 yes