Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: regex help

by Samy_rio (Vicar)
on Jun 01, 2007 at 04:17 UTC ( #618635=note: print w/ replies, xml ) Need Help??


in reply to regex help

Hi, Try now,

#!/usr/bin/perl use strict; my $term = "\"foo\"[MH] OR \"bar\"[MH]"; my @matches = $term =~ /(\"(.+)?\"\[MH\])/ ; print $_,"\n" foreach (@matches);

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';


Comment on Re: regex help
Select or Download Code
Re^2: regex help
by ikegami (Pope) on Jun 03, 2007 at 03:45 UTC
    Your code produces the same output as the OP's code. You didn't fix anything.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2015-07-04 09:32 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 (59 votes), past polls