Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 18, 2019 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/c82fe0637248f91672f8ab1b24b266a2 to your computer and use it in GitHub Desktop.
Save Whateverable/c82fe0637248f91672f8ab1b24b266a2 to your computer and use it in GitHub Desktop.
greppable6
File Code
JNTHN/OpenAPI-Schema-Validate
…/Validate.pm6 :229:
$!rx = EVAL 'rx:P5/' ~ $!pattern ~ '/';
KOORCHIK/LIVR
…/Special.pm6 :31:
my $url-re = rx:P5`^(?:(?:https?)://(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][-a-zA-Z0-9]*[a-zA-Z0-9]|[a…
KOORCHIK/LIVR
…/Special.pm6 :32:
my $anchor-re = rx:P5/#[^#]*$/;
KOORCHIK/LIVR
…/String.pm6 :91:
# $flagged-re = $is-ignore-case ?? rx:i:P5/$re/ !! rx:P5/$re/;
KOORCHIK/LIVR
…/02-rules-registration.t :32:
return 'NOT_ALPHANUMERIC' if $value !~~ rx:P5/^[a-z0-9]+$/;
SKAJI/HTTP-Tinyish
…/Base.pm6 :46:
my $token = rx:P5/[^][\x00-\x1f\x7f()<>@,;:\\"\/?={} \t]+/; #
FCO/Test-Fuzz
…/classes :188:
X::Syntax::P5
jaffa4/inistorage
…/Storage.pm :438:
while ( $file ~~ m:P5:c($p)/(?m)^\s*(\w+)\s*\=(.*)|^\s*\[(.+?)\]/) {
perl6/doc
…/5to6-nutshell.pod6 :1053:
=head2 Add :P5 or :Perl5 adverb
perl6/doc
…/5to6-nutshell.pod6 :1061:
next if $line ~~ m:P5/[aeiou]/ ; # Perl 6, using P5 modifier
perl6/doc
…/regexes.pod6 :1651:
correspond to the same adverb, as in C<:ov> or C<:P5>.
perl6/doc
…/regexes.pod6 :1801:
The B<C<:Perl5>> or B<C<:P5>> adverb switch the Regex parsing and matching
perl6/doc
…/P5.pod6 :3:
=TITLE class X::Syntax::P5
perl6/doc
…/P5.pod6 :7:
class X::Syntax::P5 does X::Syntax { }
perl6/doc
…/type-graph.txt :450:
class X::Syntax::P5 does X::Syntax
tony-o/perl6-html-parser-xml
…/S05.html :703:
<li>The extended syntax (<code>/x</code>) is no longer required...it&#39;s the default. (In fact, it&#39;s pretty much mandatory--the only way to get back to the old syntax is with the <code>:Perl5</code>/<code>:P5</code> modifier.)
tony-o/perl6-html-parser-xml
…/S05.html :1478:
<li>The new <code>:Perl5</code>/<code>:P5</code> modifier allows Perl 5 regex syntax to be used instead. (It does not go so far as to allow you to put your modifiers at the end.) For instance,
tony-o/perl6-html-parser-xml
…/S05.html :1483:
<pre> m:P5/(?mi)^(?:[a-z]|\d){1,2}(?=\s)/</pre>
zoffixznet/perl6-Pastebin-Shadowcat
…/Shadowcat.pm6 :22:
my $paste_url = $what ~~ m:P5/\D/ ?? $what !! $!pastebin_url ~ $what;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment