in reply to Exact Regex for port Number
The ssh service runs on port 22, so :22 is both, a valid number of seconds and a valid port number.
Your second approach would work, but it would miss port :443 for https.
Maybe you can be more specific for the situations where a port number is to be expected.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Exact Regex for port Number
by theravadamonk (Scribe) on Jun 19, 2018 at 08:15 UTC | |
by AnomalousMonk (Archbishop) on Jun 19, 2018 at 10:12 UTC |