Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Death to Dot Star!

by Ovid (Cardinal)
on Jul 27, 2000 at 11:27 UTC ( #24640=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $myvar =~ /"(.*)"/;
    
  2. or download this
    $myvar = qq(Tom said "hi.  It's me," and Sally replied "get lost, Ovid
    + is more my style.  Doncha think?");
    $myvar =~ /"(.*)"/;
    print $1;
    
  3. or download this
    hi.  It's me," and Sally replied "get lost, Ovid is more my style.  Do
    +ncha think?
    
  4. or download this
    $myvar =~ /"(.*?)"/;
    
  5. or download this
    $myvar =~ /"([^"]*)"/;
    
  6. or download this
    $myvar =~ /"((?:[^?"]|\?[^"])*)\?"/;
    
  7. or download this
    $myvar =~ /"           # First quote
                (          # Capture text to $1
    ...
                 )*        # Zero or more
                )          # End capture
              \?"/x;       # Followed by a question mark and quote
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2014-12-22 22:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (132 votes), past polls