in reply to Re: Regex an Array?
in thread Regex an Array?

He had spaces in his input string. I presume he wants you to allows spaces too. If you're going to take his question literally, then /^(?:[0-9,]*)$/ would suffice.

Replies are listed 'Best First'.
Re^3: Regex an Array?
by Roy Johnson (Monsignor) on May 02, 2005 at 17:52 UTC
    I didn't notice the spaces until I first saw your earlier solution. This solution isn't quite right unless you accept ",,," as a valid input.

    Caution: Contents may have been coded under pressure.
Re^3: Regex an Array?
by Forsaken (Friar) on May 02, 2005 at 17:56 UTC
    Considering the OP named it 'checked_ids' I was more or less interpreting that as meaning that that is where he will store the result of the check, not the actual data that needs to be tested. Dear OP, please enlighten us :-)

    Remember rule one...