Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Some odd ambiguity in this regex

by Paladin (Vicar)
on Jun 05, 2020 at 15:29 UTC ( #11117720=note: print w/replies, xml ) Need Help??


in reply to Some odd ambiguity in this regex

What version of 5.16 are you using, and what OS? It worked fine for me.
[~]$ perl -v This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-li +nux (with 1 registered patch, see perl -V for more detail) Copyright 1987-2012, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge. [~]$ perl -de1 Loading DB routines from perl5db.pl version 1.37 Editor support available. Enter h or 'h h' for help, or 'man perldebug' for more help. main::(-e:1): 1 DB<1> $_ = '1223w3433.45+34' DB<2> x /\d\D*/g 0 1 1 2 2 2 3 '3w' 4 3 5 4 6 3 7 3. 8 4 9 '5+' 10 3 11 4 DB<3>

Replies are listed 'Best First'.
Re^2: Some odd ambiguity in this regex
by misterperl (Monk) on Jun 05, 2020 at 17:17 UTC
    This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi (with 33 registered patches, see perl -V for more detail)
      Ok. Can you run the exact same commands I did above and see if it has the same or different output?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2022-05-22 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (78 votes). Check out past polls.

    Notices?