Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: What this pattern matches

by zerogeek (Monk)
on May 12, 2006 at 08:22 UTC ( #548922=note: print w/replies, xml ) Need Help??


in reply to Re: What this pattern matches
in thread What this pattern matches

First, let me say that this is one of the best explanations of a regex that I have seen.

Now, can anyone give a good example of 1 or 2 lines that would match and 1 or 2 that would NOT match?

Allow me to reword and provide a possible match example:
Match a line with at least one underscore (if more than one, the following applies ONLY to the LAST underscore) that is both preceeded AND followed by at least one character.

Match: I_love
Match: I_love_perl
Match: I_love_perl_!
No Match: I_love_perl!_

Am I right?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://548922]
help
Chatterbox?
[Corion]: marto: Whooo! ;) That gives me hope for the large-stadium experience ;)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-03-27 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (319 votes). Check out past polls.