my ($number) = $str =~ m{<customer_id>([0-9]{7})</customer_id>}; [download]
In reply to Re: Grabbing specific string from a line by JavaFan in thread Grabbing specific string from a line by sowais