2011/4/27 jet speed <[email protected]>: > Hi, > > Please could you advice, how can i write a regular expression for the > line below to capture 0079 and 6000097000029260057253303030373 > > > 0079 Not Visible 6000097000029260057253303030373 >
This might help? $ perl -le ' $str="0079 Not Visible 6000097000029260057253303030373"; @re = $str =~ /^(\d+).*?(\d+)$/; print "@re"' 0079 6000097000029260057253303030373 -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
