in reply to Re: Pattern matching across an array
in thread Pattern matching across an array

Ah, no, sorry. I should have said that. A - E represent DB table fields, which are validated by the respective component of the regexp.

I can't use character classes or alternation simply because each attribute has separate validation criteria. I'm trying to concatenate those critera into one regular expression which I can then apply to the whole array, rather than having to store a set of separate regexps for each attribute on the DB.

Changing $" to '' seems to have done the trick .. thanks to everyone for the help.

-- Foxcub
A friend is someone who can see straight through you, yet still enjoy the view. (Anon)

Replies are listed 'Best First'.
Re: Re: Re: Pattern matching across an array
by jdporter (Paladin) on Feb 05, 2003 at 12:29 UTC
    Ah, I see.
    Well, I question the wisdom of your approach... but if that's the way you want to do it, then you should at least make sure that the character you're using to separate the values doesn't occur in any of the values.

    jdporter
    The 6th Rule of Perl Club is -- There is no Rule #6.