#!/usr/bin/perl use strict; use warnings; my $data = '65677676'; if ($data =~ m@.*(]*/>).*@) { print("Match: [$1]\n"); }