Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 998 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 998 Bytes

Build Status

A collection of regular expressions for Go. This is the core of resolveip.

The name does not make any claims about the quality of the regular expressions included. The author just needed a short intuitive name :-)

Feedback, tests and comments are always welcome.

Installation

go get github.com/hreese/goodregex

Usage

godoc

This package currently exports three regular expressions:

  • MatchIPv4 (matches IPv4 addresses)
  • MatchIPv6 (matches IPv6 addresses)
  • MatchHostname (matches hostnames)

I would like to add versions that do not match parts inside faulty inputs (named *Bounded*), but it's currently WIP…

Use them like normal regular expressions from regexp.