Skip to content

Instantly share code, notes, and snippets.

@szabgab
Created January 25, 2015 11:07
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 szabgab/35359cfe441fd0a9f9fb to your computer and use it in GitHub Desktop.
Save szabgab/35359cfe441fd0a9f9fb to your computer and use it in GitHub Desktop.
regexes?
air:Perl6-Maven gabor$ ack ~~
app.pl
70: if $file ~~ /\/$/ {
95: if $file ~~ /tutorial\/(.*)/ {
lib/Perl6/Maven/Page.pm6
29: if $line ~~ m/^\=(\w+) \s+ (.*)/ {
84: if $row ~~ /^\<code (\s+ lang\=\".*\")? \>\s*$/ {
87: } elsif $row ~~ /\<\/code\>/ {
91: $row ~~ s:g/\</&lt;/;
92: $row ~~ s:g/\>/&gt;/;
95: if $row ~~ m/^\<include<space>file\=\"(<-["]>*)\"<space>\/\><space>*/ {
103: $row ~~ s:g/\<hl\>/<span class="label">/;
104: $row ~~ s:g/\<\/hl\>/<\/span>/;
125: next if $k ~~ /^<space>*$/;
lib/Perl6/Maven/Slides.pm6
17: #if $line ~~ /^\- id\: ([\w\-]+)$/ {
18: if $line ~~ /^\-<space>id\:<space>(.*)/ {
24: if $line ~~ /^<space>*title\:<space>(.*)/ {
28: if $line ~~ /^<space>*pages\:/ {
32: if $line ~~ /^<space>*\-<space>(.*)/ {
36: if $line ~~ /^<space>*$/ {
lib/Perl6/Maven/Tools.pm6
76: if $p.IO !~~ :e {
83: return if $dir.IO !~~ :d;
script/generate.p6
24: usage('avoid updirs') if $outdir ~~ m/\.\./;
33: usage("You cannot pass ~ in the path '$dir'") if $dir ~~ m/\~/;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment