Bot::BasicBot::Pluggable::Module::Assemble - IRC frontend to Regexp::Assemble


Bot-BasicBot-Pluggable-Module-Assemble documentation  | view source Contained in the Bot-BasicBot-Pluggable-Module-Assemble distribution.

Index


NAME

Top

Bot::BasicBot::Pluggable::Module::Assemble - IRC frontend to Regexp::Assemble

SYNOPSIS

Top

    < you> bot: assemble ab+c ab+- a\w\d+ a\d+
    < bot> a(?:\w?\d+|b+[-c])

DESCRIPTION

Top

This module is a frontend to the excellent Regexp::Assemble module which will let you get optimised regular expressions while chatting over IRC.

IRC USAGE

Top

If the regular expressions you want to assemble do not contain whitespace, separate the regexp elements with any number of space charaters:

    assemble Mr Mrs Ms Miss

to which the bot will reply:

    (?:M(?:(?:is)?s|rs?))

If you want to use another delimiter (presumably because you have space characters in your regular expressions), simply attach it to the command:

    assemble!YI SYLLABLE HNI!YI SYLLABLE MGUR

to which the bot will reply:

    (?:YI SYLLABLE (?:MGUR|HNI))

AUTHOR

Top

Philippe Bruhat (BooK), <book@cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-bot-basicbot-pluggable-module-assemble@rt.cpan.org, or through the web interface at http://rt.cpan.org/. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Top


Bot-BasicBot-Pluggable-Module-Assemble documentation  | view source Contained in the Bot-BasicBot-Pluggable-Module-Assemble distribution.