Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Regular Expression Hiccup

by GotToBTru (Prior)
on May 04, 2015 at 20:22 UTC ( [id://1125625]=note: print w/replies, xml ) Need Help??


in reply to Regular Expression Hiccup

Some titles have "X-ray" and some have "X ray"?

if ($text =~ /Screening Ligands by X[ -]ray Crystallography/) { say "MATCH!"; } else { say "NOPE!"; } }

The square brackets contain a list of characters; if any one of them matches $text at that spot, the match succeeds.

Dum Spiro Spero

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-24 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found