Wildcard to regexp

From Botnix
Jump to: navigation, search

wildcard_to_regexp

regexp = main::wildcard_to_regexp(ircglob)

Takes an irc 'glob' pattern such as *!*@*, and turns it into a regexp for safe use within Perl.