Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl Monk, Perl Meditation
 
PerlMonks  

Re: A small comma parsing problem...

by hgolden (Pilgrim)
on Oct 03, 2006 at 11:23 UTC ( [id://576102]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to A small comma parsing problem...

Hey

The problem isn't that the other languages are buried without spaces. The problem is that you've used the ^ metacharacter which means that the language has to be at the beginning of the string.

If you remove that, the search will work (as long as you don't have the name of one language embedded in another).If you're worried about that, you can split the languages string by commas and search among the results, or set up a more complicated regular expression.

Hays

Replies are listed 'Best First'.
Re^2: A small comma parsing problem...
by chinamox (Scribe) on Oct 03, 2006 at 12:19 UTC
    *smacks head* Thank one of the hardest things for me with learning Perl is keeping an eye out for the small things...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://576102]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.