Community Patterns

Community Library Entry

2

Regular Expression
Created·2025-01-24 23:48
Updated·2025-01-24 23:56
Flavor·Rust

r"
\b\d{1,3}[.[^\S\r\n]]+\d{1,3}[.[^\S\r\n]]+\d{1,3}[.[^\S\r\n]]+\d{1,3}
"
gm
Open regex in editor

Description

Blocks IPs that are sent in discord. Will block any IP, even if the numbers aren't in valid ranges (like 327.19.8.79) Has basic protections against whitespace

Submitted by Bee3D