Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Some odd ambiguity in this regex

by hippo (Bishop)
on Jun 05, 2020 at 15:25 UTC ( [id://11117719]=note: print w/replies, xml ) Need Help??


in reply to Some odd ambiguity in this regex

Your DB counters are in the 30s (and skip backwards). My guess is it's something in the steps you are not showing us. Here's my SSCCE:

use strict; use warnings; use Test::More tests => 2; my @matches; $_ = '1223w3433.45+34'; @matches = (/\d\D*/g); is $matches[0], 1, 'First time'; @matches = (/\d\D*/g); is $matches[0], 1, 'Second time';

Which passes, as you would expect.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-26 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found