ip-regex offers a robust and accurate solution for validating and extracting IPv4 and IPv6 addresses from strings in JavaScript environments. This package provides a regular expression designed specifically for IP address matching, ensuring reliable identification of valid IP addresses while minimizing false positives. Ideal for network tools, security applications, and data validation, ip-regex simplifies the process of working with IP addresses by providing a concise and well-tested regular expression.
The ip-regex package has had sporadic releases since its initial release in September 2014. Releases occurred roughly every few months in the beginning, then slowed down considerably. Version 2.0.0 was released in January 2017, version 3.0.0 in April 2018, version 4.0.0 in January 2019, and version 5.0.0 in January 2022. There have been no releases since January 2022.
The npm package ip-regex saw fluctuating download numbers between March 2024 and August 2025. Downloads hovered around 33-37 million for most of 2024 and early 2025, peaking in May 2025 and June 2025. July maintained high volume. August 2025 numbers are not complete as the month is still in progress.