2011/4/27 jet speed <speedj...@googlemail.com>: > 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: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/