Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 pondering the Monastery: (4)
As of 2014-07-26 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls