There is a task: Take the IP and Port from the line in the .csv file (example below, first IP, then port)
1.33.3.146,9001,,fwioetwg4utghw4ignc,Fast Running Stable Valid,447,reject,1-65535,0
I wrote Regex to take IP, Port, but together with this, it also takes "1-65535.0", but I do not need it.
Regex:
\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3},(\d{1,5})
Tell me what to add to my Regex? Thank!
^
. And yet, just a point in regexp - this is never a point symbol ... - Akina/(?<!\d)\d{1,3}(?:\.\d{1,3}){3},(\d{1,5})(?!\d)/
(/(?<!\d)\d{1,3}(?:\.\d{1,3}){3},(\d{1,5})(?!\d)/
, ((/(?<!\d)\d{1,3}(?:\.\d{1,3}){3},(\d{1,5})(?!\d)/
(/(?<!\d)\d{1,3}(?:\.\d{1,3}){3},(\d{1,5})(?!\d)/
, demo . - Wiktor Stribiżew