regex - Match only first occurrence of digit -
after few hours of disappointed searching can't figure out.
i piping grep input, want first occurrence of digit.
example:
nmcli --version nmcli tool, version 1.1.93 pipe grep regex
nmcli --version |grep -o '[[:digit:]]' output:
1 1 9 3 what want:
1 yeah there way pipe, there "pure" single regex that?