Revision history for Regexp-Wildcards
+1.04 2011-08-25 12:50 UTC
+ + Chg : Minor code cleanups.
+ + Fix : Use Scalar::Util::blessed() to check objects classes.
+ Scalar::Util is required.
+ + Fix : Work around Kwalitee test misfailures.
+ + Upd : The distribution metadata was updated to modern standards.
+
1.03 2009-02-26 15:35 UTC
+ Add : Translating both 'jokers' and 'sql' at the same time.
+ Doc : Cleanups.
---- #YAML:1.0
-name: Regexp-Wildcards
-version: 1.03
-abstract: Converts wildcard expressions to Perl regular expressions.
+---
+abstract: 'Converts wildcard expressions to Perl regular expressions.'
author:
- - Vincent Pit <perl@profvince.com>
-license: perl
-distribution_type: module
-configure_requires:
- ExtUtils::MakeMaker: 0
+ - 'Vincent Pit <perl@profvince.com>'
build_requires:
- ExtUtils::MakeMaker: 0
- Test::More: 0
+ Carp: 0
+ ExtUtils::MakeMaker: 0
+ Scalar::Util: 0
+ Test::More: 0
+ Text::Balanced: 0
+configure_requires:
+ ExtUtils::MakeMaker: 0
+dynamic_config: 0
+generated_by: 'ExtUtils::MakeMaker version 6.59, CPAN::Meta::Converter version 2.112150'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: Regexp-Wildcards
+no_index:
+ directory:
+ - t
+ - inc
requires:
- Carp: 0
- perl: 5.006
- Text::Balanced: 0
+ Carp: 0
+ Scalar::Util: 0
+ Text::Balanced: 0
+ perl: 5.006
resources:
- bugtracker: http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Regexp-Wildcards
- homepage: http://search.cpan.org/dist/Regexp-Wildcards/
- license: http://dev.perl.org/licenses/
- repository: http://git.profvince.com/perl/modules/Regexp-Wildcards.git
-no_index:
- directory:
- - t
- - inc
-generated_by: ExtUtils::MakeMaker version 6.48
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ bugtracker: http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Regexp-Wildcards
+ homepage: http://search.cpan.org/dist/Regexp-Wildcards/
+ license: http://dev.perl.org/licenses/
+ repository: http://git.profvince.com/?p=perl%2Fmodules%2FRegexp-Wildcards.git
+version: 1.04
expressions.
VERSION
- Version 1.03
+ Version 1.04
SYNOPSIS
use Regexp::Wildcards;
$re = $rw->convert('%a_c%', 'sql'); # Turn SQL wildcards into regexps.
$rw = Regexp::Wildcards->new(
- do => [ qw/jokers brackets/ ], # Do jokers and brackets.
- capture => [ qw/any greedy/ ], # Capture *'s greedily.
+ do => [ qw<jokers brackets> ], # Do jokers and brackets.
+ capture => [ qw<any greedy> ], # Capture *'s greedily.
);
$rw->do(add => 'groups'); # Don't escape groups.
- $rw->capture(rem => [ qw/greedy/ ]); # Actually we want non-greedy matches.
+ $rw->capture(rem => [ qw<greedy> ]); # Actually we want non-greedy matches.
$re = $rw->convert('*a{,(b)?}?c*'); # '(.*?)a(?:|(b).).c(.*?)'
$rw->capture(); # No more captures.
$rw->do(set => 'jokers'); # Only translate jokers.
$rw->do('jokers'); # Same.
- $rw->do(add => [ qw/sql commas/ ]); # Translate also SQL and commas.
+ $rw->do(add => [ qw<sql commas> ]); # Translate also SQL and commas.
$rw->do(rem => 'jokers'); # Specifying both 'sql' and 'jokers' is useless.
$rw->do(); # Translate nothing.
$rw->capture(set => 'single'); # Only capture "exactly one" metacharacters.
$rw->capture('single'); # Same.
- $rw->capture(add => [ qw/any greedy/ ]); # Also greedily capture "any" metacharacters.
+ $rw->capture(add => [ qw<any greedy> ]); # Also greedily capture "any" metacharacters.
$rw->capture(rem => 'greedy'); # No more greed please.
$rw->capture(); # Capture nothing.
An object module shouldn't export any function, and so does this one.
DEPENDENCIES
- Carp (core module since perl 5), Text::Balanced (since 5.7.3).
+ Carp (core module since perl 5), Scalar::Util, Text::Balanced (since
+ 5.7.3).
CAVEATS
This module does not implement the strange behaviours of Windows shell