
Regexp::Whitespace - Whitespace insensitivity for regexes

use Regexp::Whitespace ();
my $re = Regexp::Whitespace->new( 'a b c', 'w' );
"a b\t\n c" =~ $re; # true

THIS IS A pre-alpha RELEASE.
This module implements a /w modifier for regexes that provides whitespace insensitivity.
qr/a b c/w => qr/a\s+b\s+c/
* only supports a global 'w' modifier by now
* only exact pieces are handled by now
(which means things like / [ x] /xw are not transformed into
/ (?: \s+ | [x] ) /x

perlre perlrecharclass (since Perl 5.10)

Please report bugs via CPAN RT http://rt.cpan.org/NoAuth/Bugs.html?Dist=Regexp-Whitespace or mailto://bugs-Regexp-Whitespace@rt.cpan.org.

Adriano R. Ferreira, <ferreira@cpan.org>

Copyright (C) 2008 by Adriano R. Ferreira
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.