2 ms·
If PCRE is supported: grep -oP '\(\K\d+(?=\))' The above will give all matches in a line though. You can remove `(?=\))` part if numbers are always encl
by asicsp 4y ago
If PCRE is supported:
grep -oP '\(\K\d+(?=\))'
The above will give all matches in a line though. You can remove `(?=\))` part if numbers are always enclosed in `()` or if you don't care about the `)`