in reply to Re^3: Checking for occurrence in comma separated string
in thread Checking for occurrence in comma separated string
Of course. If I had to allow for numbers, and not just natural numbers, I'd DTRT: split on comma, and compare with eq.
(Update) Whoops! Of course I meant <=>. Naturally. :-)
sauoq's comments about dealing with whitespace are worthwhile; but the OP's sample data clearly had no whitespace to deal with.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Checking for occurrence in comma separated string
by sauoq (Abbot) on Oct 25, 2005 at 16:04 UTC |