Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Perl RegEx doubt

by hippo (Bishop)
on Jun 07, 2016 at 12:35 UTC ( [id://1165063]=note: print w/replies, xml ) Need Help??


in reply to Perl RegEx doubt

Omit the question marks as they vary the count.

#!/usr/bin/env perl use strict; use warnings; use Test::More tests => 2; my $re = qr/....p./; like ('ABCDpF', $re, 'Should match'); unlike ('tp7avs', $re, 'Should not match');

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-24 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found