How do I perform action on all matching groups when the pattern matches multiple times in a line?
To illustrate, I want to search for /Hello! (\\d+)/ an
/Hello! (\\d+)/
GNU awk
awk 'BEGIN{ RS="Hello! ";} { gsub(/[^0-9].*/,"",$1) if ($1 != ""){ print $1 } }' file