# Regex for validating IP-Adresses

**URL:** <https://community.datagerry.com/t/regex-for-validating-ip-adresses/53>\
**Category:** Knowledge Base\
**Created:** [January 29, 2020, 10:27pm UTC](https://community.datagerry.com/t/regex-for-validating-ip-adresses/53 "2020-01-29T22:27:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uwe](https://dub1.discourse-cdn.com/flex013/user_avatar/community.datagerry.com/uwe/32/6_2.png) [@uwe](https://community.datagerry.com/u/uwe)\
**Post date:** [January 29, 2020, 10:27pm UTC](https://community.datagerry.com/t/regex-for-validating-ip-adresses/53/1 "2020-01-29T22:27:39Z")

</div>

Hi there,

here you find a regex to validate IP-Adresses.

\b(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\b

borrowed from: [https://www.regular-expressions.info/ip.html](https://www.regular-expressions.info/ip.html)
