Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finished first 3 regex exercises. added shells for other files.
- Loading branch information
Showing
7 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/perl -w | ||
use strict; | ||
use 5.010; | ||
|
||
while (<>){ | ||
print $_ if (m/[.]+/); | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
1 fred | ||
2 Fred | ||
3 ffred | ||
4 Ffred | ||
5 frederick | ||
6 Frederick | ||
7 Alfred | ||
8 AlFred | ||
9 FRED | ||
10 FReD | ||
11 FREd | ||
12 FrED | ||
13 FreD | ||
14 fRED | ||
15 freD | ||
16 Mr. Fred Flinstone | ||
17 Dr. Fred Flinstone | ||
18 ........ | ||
19 .. | ||
20 _______. | ||
21 a.a | ||
22 .a. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/perl -w | ||
use strict; | ||
use 5.010; | ||
|
||
while (<>){ | ||
print $_ if (m/\b(?:fred)\b/); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/perl -w | ||
use strict; | ||
use 5.010; | ||
|
||
while (<>){ | ||
print $_ if (m/\b(?:[Ff]red)\b/); | ||
} |
Empty file.