]> git.vpit.fr Git - perl/modules/Regexp-Wildcards.git/commitdiff
->capture also returns the object
authorVincent Pit <vince@profvince.com>
Thu, 26 Feb 2009 14:42:04 +0000 (15:42 +0100)
committerVincent Pit <vince@profvince.com>
Thu, 26 Feb 2009 14:42:04 +0000 (15:42 +0100)
lib/Regexp/Wildcards.pm

index f0b471a8be5cea353f87254b5e3c164849e703db..1b3b4e9271d6aa1b4e0e69e742494ad9a678ca34 100644 (file)
@@ -399,6 +399,8 @@ C<'brackets'> will capture matching C<{ ... , ... }> alternations.
     $rw->capture(rem => 'greedy');           # No more greed please.
     $rw->capture();                          # Capture nothing.
 
     $rw->capture(rem => 'greedy');           # No more greed please.
     $rw->capture();                          # Capture nothing.
 
+The C<capture> method returns the L<Regexp::Wildcards> object.
+
 =head2 C<convert $wc [ , $type ]>
 
 Converts the wildcard expression C<$wc> into a regular expression according to the options stored into the L<Regexp::Wildcards> object, or to C<$type> if it's supplied.
 =head2 C<convert $wc [ , $type ]>
 
 Converts the wildcard expression C<$wc> into a regular expression according to the options stored into the L<Regexp::Wildcards> object, or to C<$type> if it's supplied.