Saturday, September 26, 2026
HomeGolangSaying list2regexp - Generate common expressions to match lists of strings -...

Saying list2regexp – Generate common expressions to match lists of strings – Releases


Right here is an instance. Given the next checklist of strings:

1.2.3.4
127.0.0.1
127.0.0.2
127.0.0.11
128.0.0.1
125.0.0.*
200.0.0.1
2001:0db8:85a3:0000:0000:8a2e:0370:1300
2001:0db8:85a3:0000:0000:8a2e:0370:1330
2001:0db8:85a3:0000:0000:8a2e:0370:1337
あいうえお
あいうえこ
😃😁😆😐
😃😁😆
😃😁🤣

list2regexp will return the next sample:

^(?:1(?:(?:.(?:2(?:.(?:3(?:.(?:4))))))|(?:2(?:(?:5(?:.(?:0(?:.(?:0(?:.(?:.*)))))))|(?:7(?:.(?:0(?:.(?:0(?:.(?:(?:1(?:|(?:1)))|(?:2))))))))|(?:8(?:.(?:0(?:.(?:0(?:.(?:1)))))))))))|(?:2(?:0(?:0(?:(?:.(?:0(?:.(?:0(?:.(?:1))))))|(?:1(?::(?:0(?:d(?:b(?:8(?::(?:8(?:5(?:a(?:3(?::(?:0(?:0(?:0(?:0(?::(?:0(?:0(?:0(?:0(?::(?:8(?:a(?:2(?:e(?::(?:0(?:3(?:7(?:0(?::(?:1(?:3(?:(?:0(?:0))|(?:3(?:(?:0|7))))))))))))))))))))))))))))))))))))))))))|(?:あ(?:い(?:う(?:え(?:(?:お|こ))))))|(?:😃(?:😁(?:(?:😆(?:|(?:😐)))|(?:🤣))))$

What’s a real-world use for this? Simply questioning how you plan for individuals to make use of it.

This venture grew out of Sriracha, the place it’s used to match massive IP lists (for whitelisting or blacklisting).

Thanks for saying It’s very useful for us ! MyMilestoneCard on-line companies

Previous articleJack Dongarra
Next articleThe 4 DIMM downside
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

The 4 DIMM downside

Jack Dongarra

Recent Comments