expressions.
VERSION
- Version 1.01
+ Version 1.02
SYNOPSIS
use Regexp::Wildcards;
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.
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 ".*" ;
'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