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

Re^6: regex trouble

by blackgoat (Acolyte)
on Mar 05, 2010 at 11:18 UTC ( #826944=note: print w/replies, xml ) Need Help??


in reply to Re^5: regex trouble
in thread regex trouble

I'm getting the following error:

Unmatched ( in regex; marked by <-- HERE in m/( <-- HERE v\d{2}\.\d{2}(a-z\d{3})/

Replies are listed 'Best First'.
Re^7: regex trouble
by amir_e_a (Hermit) on Mar 05, 2010 at 11:31 UTC

    You probably only need one opening bracket in the beginning and one closing in the end:

    m/(v\d{2}\.\d{2}-[a-z]\d{3})/

    Brackets should usually match - for every opening bracket there must be one closing bracket.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2023-06-10 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (36 votes). Check out past polls.

    Notices?