Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Question about regex.

by Cristoforo (Curate)
on Sep 29, 2020 at 03:36 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11122316]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2024-04-25 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found