in reply to Exact Regex for port Number
To avoid the chasing of wild geese again, please take a moment to read How to ask better questions using Test::More and sample data.