Glob patterns

From the makers of InspIRCd.
(Redirected from glob patterns)
Jump to: navigation, search

Character matching

Glob patterns are simple pattern matching, as used in windows and in unix shells:

  • * Matches zero or more of any character
  • ? Matches one character ONLY.

For example ca? will match cat or cab, but not calf or calm. c* will match all of cat, cab, calf or callous, but not balloon.

Simple, and effective.

CIDR matching

Where IP addresses are being matched, you may specify a CIDR notation mask, for example:

1.2.3.0/24

would match all users in the range 1.2.3.0 through 1.2.3.255.

CIDR notation may be used in connect allow and deny, channel bans, channel exceptions, klines, glines, zlines, elines, link tag allowmasks, and more. In general, if it can be used to match a range of IPs, CIDR can be used.