Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
aadhavans
10 months ago
|
parent
|
context
|
favorite
| on:
Regex Isn't Hard (2023)
Shameless plug: My Regex engine (
https://pkg.go.dev/gitea.twomorecents.org/Rockingcool/kleing...
) has dedicated syntax for this kind of task.
<0-255>\.<0-255>\.<0-255>\.<0-255>
will only match full IPv4 addresses, but is a lot stricter than the one in the article.
EDIT: formatting
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
EDIT: formatting