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

Re: Regex help

by Anonymous Monk
on Oct 01, 2002 at 23:40 UTC ( #202151=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <script>
    malicious_code_to_do_something_nasty
    </script>
    
  2. or download this
    $text = "my name is john q user\n";
    $text =~ s/^my name is (.*?) .*$/$1/;
    # removes "my name is ", saves the next word, essentially, into $1, re
    +moves the rest
    print "hello, $text!\n";
    # prints "hello, john!\n"
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (17)
As of 2015-07-28 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls