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

Re^2: Question regarding a regex

by LanX (Saint)
on Jul 22, 2021 at 20:55 UTC ( [id://11135318]=note: print w/replies, xml ) Need Help??


in reply to Re: Question regarding a regex
in thread Question regarding a regex

> Unless the hyphen is the very first character, it signifies a range.

or the very last.

DB<1> p '-' =~ /[a-]/ 1 DB<2> p '-' =~ /[a- ]/ Invalid [] range "a- " in re ..

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-04-18 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found