Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Regex help

by Anonymous Monk
on Oct 01, 2002 at 23:40 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://202151]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-24 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found