From: Yaroslav Schekin on 18 Jan 2010 01:53 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).
|
Pages: 1 Prev: احصل على ماستر كارد MasterCard مجانا وتوصلك إلى بيتك Next: Tooltips for headers in TkTreectrl? |