Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Regex Mystery

by tybalt89 (Monsignor)
on Apr 13, 2025 at 04:20 UTC ( [id://11164680]=note: print w/replies, xml ) Need Help??


in reply to Regex Mystery

if ($file =~ m/\Q$regex/i) {

because \t is a tab.

Replies are listed 'Best First'.
Re^2: Regex Mystery
by roho (Bishop) on Apr 13, 2025 at 04:44 UTC
    Thanks tybalt89. I knew it must be something obvious. Time to rest now.

    "It's not how hard you work, it's how much you get done."

Re^2: Regex Mystery
by harangzsolt33 (Deacon) on Apr 13, 2025 at 15:47 UTC
    Wait, wouldn't this be more appropriate?:

          if ($file =~ m/\Q$regex\E/i) ...

      theyre exactly the same

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2025-11-10 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (66 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.