Just get rid of the address regex entirely:
mount | sed -n -e "s/\/\/mynetaddr on \([^ ]*\).*$/\1/p"
The s///
command will then be matched against every line of the input, and only those in which a replacement occurs will be printed out (because that's how the p
flag works).