Just another Perl shrine | |
PerlMonks |
Exact Regex for port Numberby theravadamonk (Scribe) |
on Jun 19, 2018 at 07:15 UTC ( [id://1216913]=perlquestion: print w/replies, xml ) | Need Help?? |
theravadamonk has asked for the wisdom of the Perl Monks concerning the following question: Hi, Monks, I am looking for an EXACT REGEX for a port number? a few e.g :42744 :1024 It DON'T want to MATCH my date Jun 19 08:48:50 where : is also present. I went to https://regex101.com/ and wrote a bit, It WILL catch : of DATE data too this catches BOTH Can I have this?
Your efforts r welcome.
Back to
Seekers of Perl Wisdom
|
|