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

Re: pattern matching question

by DigitalKitty (Parson)
on Jun 20, 2003 at 17:19 UTC ( [id://267659]=note: print w/replies, xml ) Need Help??


in reply to pattern matching question

Hi jxia.

The '*' quantifier matches as many characters as it can (zero or more). The '.' implies any character except a newline. You can disable greediness by including a '?' to the end of your regex pattern. Suggestion: Don't use '#' in a pattern match or replacement. It looks like a comment and can frustrate debugging efforts.

Hope this helps,
-Katie.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found