Regex - Match IPv4 address


/ Published in: Regular Expression
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /\b(?:(?: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]?)\b/

Report this snippet


Comments


You need to login to view comments.