From: Yaroslav Schekin on
Hi.

> doesn't seem to work. finds one only, and not all of them.

regexp -all -inline {eth[0-9]+?.*inet addr: (\d{1,3}\.\d{1,3}\.\d
{1,3}\.\d{1,3})} $str

Note:
1. "-all -inline" used to return all possible matches and submatches.
2. "+?" forces shortest match of whole RE (your regexp uses longest,
and gets everything
from FIRST ethN to LAST ip address).