![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: A small comma parsing problem...by hgolden (Pilgrim) |
on Oct 03, 2006 at 15:23 UTC ( [id://576102]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|