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

Re: regex help needed

by samarzone (Pilgrim)
on Mar 29, 2011 at 07:57 UTC ( #896102=note: print w/ replies, xml ) Need Help??


in reply to regex help needed

You got the solutions by Eliya and dasgar. Here is the answer of

Any idea what I'm missing?

The dot (.) after the first closing bracket is creating problem. Remove it and the asterisk as well.

I was trying to explain the regex but I found it quite difficult for me to write it in simple language. :)

You can try to find out where and why the pattern matched by printing $1 or adding multiple capturing brackets before or after the negative look ahead pattern and then printing the corresponding matches

--
Regards
- Samar


Comment on Re: regex help needed
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2014-08-27 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (232 votes), past polls