Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Regex only returning partial data

by toolic (Bishop)
on Jun 06, 2008 at 17:42 UTC ( [id://690715]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_ = '<title>GRP -134 - Grinding And Cutting Solution (ACME PR50 - Wat
    +er Type) </title>';
    if (m/\s(?:-\s)?([\w\s\d()\-,]{1,75})<\/title>/) {
        print "$1\n";
    }
    
  2. or download this
    -134 - Grinding And Cutting Solution (ACME PR50 - Water Type)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2025-03-16 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (54 votes). Check out past polls.