Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Pattern Matching:#2

by Anonymous Monk
on Mar 23, 2000 at 01:29 UTC ( [id://5921]=note: print w/replies, xml ) Need Help??


in reply to String matching and Regular Expressions

You don't explain in the tuturial what the trailing /i does, hardly seems fair to quiz on it. There should be a section detailing what /i or /g does trailing the reg expr. I looked and found nothing about it.

Replies are listed 'Best First'.
RE: Pattern Matching:#2
by providencia (Pilgrim) on Apr 05, 2000 at 08:37 UTC
    The trailing "i" means it ignores the case.
    The "g" is the global replace option.

    There's a good example of "i" in Learning Perl 2nd edition.
    On page 11 and the program continues on page 12.
    It's really helpful for making your programs dummy proof for users.

    An example of "g" can be found on page 88 of the same book.
    It is my bible although I have two other books I am using.
    (a programming newbie can never have enough books)

    I almost forgot to mention that issuing the command "perldoc perlop"
    (without the quotes) on most systems will give you
    detailed information on perl operators.

    Perldoc is excellent! use "perldoc perldoc" to learn how to use it.
RE: Pattern Matching:#2
by little_mistress (Monk) on Apr 06, 2000 at 00:59 UTC
    Another really good book is Mastering Regular Expressions. Not only does it give easy to understand detailed and insightful information on regular expressions, it also suggests having a beer while your reading the book. ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2024-04-16 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found