Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Parsing/regex help required

by kcott (Archbishop)
on Sep 28, 2021 at 07:50 UTC ( [id://11137078]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    print "Original string: $str\n";
    print "Parts separated by some dash:\n";
    print "$_\n" for split $re, $str;
    
  2. or download this
    Original string: a-b–c—d
    Parts separated by some dash:
    ...
    b
    c
    d
    
  3. or download this
    $ ./pm_11137036_re_alt_dashes.pl | cat -vet
    Original string: a-bM-bM-^@M-^ScM-bM-^@M-^Td$
    ...
    b$
    c$
    d$
    

Log In?
Username:
Password:

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

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

    No recent polls found