Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Parsing/regex help required

by Anonymous Monk
on Sep 27, 2021 at 13:49 UTC ( #11137039=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $entry = "123. The Quick brown fox  jumped over";
    my( $num, $text1, $text2 )= $entry =~ m{^ (\d+) \. \s+ (.*?) \s+-\s+ (
    +.*?) $}x;
    say "$num|$text1|$text2";
    
  2. or download this
    Use of uninitialized value $num in concatenation (.) or string at ./te
    +st.pl line 10.
    Use of uninitialized value $text1 in concatenation (.) or string at ./
    +test.pl line 10.
    Use of uninitialized value $text2 in concatenation (.) or string at ./
    +test.pl line 10.
    ||
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2022-01-22 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (60 votes). Check out past polls.

    Notices?