From: SourceForge.net <no...@so...> - 2010-09-21 19:59:30
|
Bugs item #3072906, was opened at 2010-09-21 23:59 Message generated for change (Tracker Item Submitted) made by lexab You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113179&aid=3072906&group_id=13179 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Alex Bukanov (lexab) Assigned to: Nobody/Anonymous (nobody) Summary: regexp lazy quantification Initial Comment: This example --- set aa { ! interface ethernet 1/1 switchport native vlan 5 ! interface ethernet 1/2 switchport native vlan 334 ! interface ethernet 1/3 switchport native vlan 4093 ! interface ethernet 1/4 switchport native vlan 2 ! }; regexp "ethernet 1/3.*?native vlan (\[0-9]{1,3})" $aa bb cc; set cc; ---- returned one symbol "4" But, if I don't use lazy modifier ".*?" like this : --- regexp "ethernet 1/3.*native vlan (\[0-9]{1,3})" $aa bb cc; set cc ; ------ returned correct number "4093" It is a bug ? I use expect version 5.44.1.14 on ubuntu linux 10.04 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113179&aid=3072906&group_id=13179 |