Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Parsing/regex help required

by kcott (Bishop)
on Sep 28, 2021 at 07:50 UTC ( #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-bcd
    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? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2022-01-22 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?