46
submitted 4 days ago by trevor@lemmy.ml to c/opensource@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] HotChickenFeet@sopuli.xyz 3 points 4 days ago* (last edited 4 days ago)

(?: strings|stringb|stringc)

Is valid regex given a list of strings to match, no?

Is the advantage here some performance gain or potential to use fewer characters depending on the list?

Edit: I see elsewhere it's specifically so you can match against a long list of specific IPs - so maybe a bit of both.

this post was submitted on 17 Sep 2026
46 points (97.9% liked)

Open Source

49130 readers
867 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 7 years ago
MODERATORS