$_ = 'samir: 23 yearold'; my $match $match = $1 if /(samir: 23)/;