File: README

package info (click to toggle)
libregexp-stringify-perl 0.06-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 152 kB
  • sloc: perl: 127; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
SYNOPSIS

    Assuming this runs on Perl 5.14 or newer.

     use Regexp::Stringify qw(stringify_regexp);
     $str = stringify_regexp(regexp=>qr/a/i);                       # '(^i:a)'
     $str = stringify_regexp(regexp=>qr/a/i, with_qr=>1);           # 'qr(a)i'
     $str = stringify_regexp(regexp=>qr/a/i, plver=>5.010);         # '(?:(?i-)a)'
     $str = stringify_regexp(regexp=>qr/a/ui, plver=>5.010);        # '(?:(?i-)a)'