regexThu, 16 Feb 2023

check an ip or an ftp in one regex for python

^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$

Questions about programming?Chat with your personal AI assistant