|
NAMERegexp::Stringify - Stringify a Regexp objectVERSIONThis document describes version 0.06 of Regexp::Stringify (from Perl distribution Regexp-Stringify), released on 2016-10-29.SYNOPSISAssuming 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)' FUNCTIONSstringify_regexp(%args) -> strStringify a Regexp object.This routine is an alternative to Perl's default stringification of Regexp object (i.e.:"$re") and has some features/options, e.g.: producing regexp string that is compatible with certain perl versions. If given a string (or other non-Regexp object), will return it as-is. This function is not exported by default, but exportable. Arguments ('*' denotes required arguments):
Return value: (str) HOMEPAGEPlease visit the project's homepage at <https://metacpan.org/release/Regexp-Stringify>.SOURCESource repository is at <https://github.com/perlancar/perl-Regexp-Stringify>.BUGSPlease report any bugs or feature requests on the bugtracker website <https://rt.cpan.org/Public/Dist/Display.html?Name=Regexp-Stringify>When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. AUTHORperlancar <perlancar@cpan.org>COPYRIGHT AND LICENSEThis software is copyright (c) 2016 by perlancar@cpan.org.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |