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 16:19 UTC
    *smacks head* Thank one of the hardest things for me with learning Perl is keeping an eye out for the small things...