Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Question about regex.

by Cristoforo (Curate)
on Sep 29, 2020 at 03:36 UTC ( #11122316=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
        local $/ = "\n\n";
        print grep /\b(?:third|four)\b/i, <>;    
    }
    
  2. or download this
    C:\Old_Data\perlp>perl test3.pl testlines.txt
    This is line one.
    Line Two is this.
    Third line starts here.
    This is line four.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11122316]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2021-06-16 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (75 votes). Check out past polls.

    Notices?