]> git.vpit.fr Git - perl/modules/Regexp-Wildcards.git/commitdiff
This is 1.02 v1.02
authorVincent Pit <vince@profvince.com>
Sat, 23 Aug 2008 09:15:38 +0000 (11:15 +0200)
committerVincent Pit <vince@profvince.com>
Sat, 23 Aug 2008 09:15:38 +0000 (11:15 +0200)
Changes
META.yml
README
lib/Regexp/Wildcards.pm

diff --git a/Changes b/Changes
index 1524d4f6e00455e47e476c95307d8a108d728234..8c41c424597408e8f9abec588fec9230d35b0627 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 Revision history for Regexp-Wildcards
 
 Revision history for Regexp-Wildcards
 
+1.02    2008-08-23 09:15 UTC
+        + Add : The 'anchor' metacharacter class.
+
 1.01    2008-08-19 15:20 UTC
         + Fix : Now we can do both SQL and brackets.
         + Tst : Add tests for embedded newlines.
 1.01    2008-08-19 15:20 UTC
         + Fix : Now we can do both SQL and brackets.
         + Tst : Add tests for embedded newlines.
index 2050f11c5e062d82c2e85f3943dd4067b4b6d711..cfa8e613c8fdd97f896874c0efc5fdeaf330fcb7 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:                Regexp-Wildcards
 --- #YAML:1.0
 name:                Regexp-Wildcards
-version:             1.01
+version:             1.02
 abstract:            Converts wildcard expressions to Perl regular expressions.
 license:             perl
 author:              
 abstract:            Converts wildcard expressions to Perl regular expressions.
 license:             perl
 author:              
diff --git a/README b/README
index 7d0d9b9247aa56495c305e64ccddd6e0c01de043..19cb5b7733ad7e7ffc72bc5b3341f9bf2647be33 100644 (file)
--- a/README
+++ b/README
@@ -3,7 +3,7 @@ NAME
     expressions.
 
 VERSION
     expressions.
 
 VERSION
-    Version 1.01
+    Version 1.02
 
 SYNOPSIS
         use Regexp::Wildcards;
 
 SYNOPSIS
         use Regexp::Wildcards;
@@ -33,8 +33,9 @@ DESCRIPTION
     regular expressions, so that you can use them for matching.
 
     It handles the "*" and "?" jokers, as well as Unix bracketed
     regular expressions, so that you can use them for matching.
 
     It handles the "*" and "?" jokers, as well as Unix bracketed
-    alternatives "{,}", but also "%" and "_" SQL wildcards. It can also keep
-    original "(...)" groups. Backspace ("\") is used as an escape character.
+    alternatives "{,}", but also "%" and "_" SQL wildcards. If required, it
+    can also keep original "(...)" groups or "^" and "$" anchors. Backspace
+    ("\") is used as an escape character.
 
     Typesets that mimic the behaviour of Windows and Unix shells are also
     provided.
 
     Typesets that mimic the behaviour of Windows and Unix shells are also
     provided.
@@ -54,8 +55,8 @@ METHODS
     more details.
 
   "do [ $what | set => $c1, add => $c2, rem => $c3 ]"
     more details.
 
   "do [ $what | set => $c1, add => $c2, rem => $c3 ]"
-    Specifies the list of metacharacters to convert. They are classified
-    into five classes :
+    Specifies the list of metacharacters to convert or to prevent for
+    escaping. They fit into six classes :
 
     *   'jokers' converts "?" to "." and "*" to ".*" ;
 
 
     *   'jokers' converts "?" to "." and "*" to ".*" ;
 
@@ -86,6 +87,12 @@ METHODS
 
             'a(b(c))d\\(\\)' ==> (no change)
 
 
             'a(b(c))d\\(\\)' ==> (no change)
 
+    *   'anchors' prevents the *beginning-of-line* "^" and *end-of-line* "$"
+        anchors to be escaped. Since "[...]" character class are currently
+        escaped, a "^" will always be interpreted as *beginning-of-line*.
+
+            'a^b$c' ==> (no change)
+
     Each $c can be any of :
 
     *   A hash reference, with wanted metacharacter group names (described
     Each $c can be any of :
 
     *   A hash reference, with wanted metacharacter group names (described
index f4be72fc72f884ae92641b3d243e31f0352dbf9e..0394e9a96ae7d07ddf4fe196e06d9a0b5c61672b 100644 (file)
@@ -12,13 +12,13 @@ Regexp::Wildcards - Converts wildcard expressions to Perl regular expressions.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.01
+Version 1.02
 
 =cut
 
 use vars qw/$VERSION/;
 BEGIN {
 
 =cut
 
 use vars qw/$VERSION/;
 BEGIN {
- $VERSION = '1.01';
+ $VERSION = '1.02';
 }
 
 =head1 SYNOPSIS
 }
 
 =head1 SYNOPSIS
@@ -243,7 +243,7 @@ C<'groups'> keeps the parenthesis C<( ... )> of the original string without esca
 
 =item *
 
 
 =item *
 
-C<'anchors'> prevents the beginning-of-line C<^> and end-of-line C<$> anchors to be escaped. Since C<[...]> character class are currently escaped, a C<^> will always be interpreted as such.
+C<'anchors'> prevents the I<beginning-of-line> C<^> and I<end-of-line> C<$> anchors to be escaped. Since C<[...]> character class are currently escaped, a C<^> will always be interpreted as I<beginning-of-line>.
 
     'a^b$c' ==> (no change)
 
 
     'a^b$c' ==> (no change)