Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Regexp match start or end

by LanX (Saint)
on Jun 02, 2024 at 13:39 UTC ( [id://11159752]=note: print w/replies, xml ) Need Help??


in reply to Regexp match start or end

> But being AI, it can be unpredictable!

And because of this I'd rather stick with separated, simple rules which can be easily maintained.

Better expect more trouble to come.

> with the single word "Perfect"

Your logic is flawed though, this

$reply !~ /^perfect/i

will not only match (well reject) "single words" at the beginning.

Cheers Rolf
(addicted to the Perl Programming Language :)
see 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://11159752]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2025-07-08 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.