Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Regex confusion

by graff (Chancellor)
on Aug 07, 2002 at 17:39 UTC ( [id://188399]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Regex confusion
in thread Regex confusion

Arturo is right -- I don't see how anything is getting assigned to $project, since the match does not succeed at all for the initial example.

Trying to match: client.project.subproject where:

  • Client and project are manditory. Subproject is optional but, there could be more than one.
  • Client, project and subproject could contain, letters, numbers, _, -, or \&

Update:Actually your regex ... works well. Thank you.

Arturo's regex will include both your project and all sub-projects in $2. If that's okay, fine. If not, do it like this:

/([^.]+)\.([^.]+)/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found