|
Posted by Bosconian on 12/07/06 17:05
"Tim Roberts" <timr@probo.com> wrote in message
news:e4cfn292tlsq7aped4qak54apoq0fjvagh@4ax.com...
> "Bosconian" <nobody@nowhere.com> wrote:
>>
>>I need a comma delimited regular expression pattern with the followng
>>restrictions:
>>
>>no leading and trailing white space
>>no trailing comma
>>double quoted numeric/alpha pairs
>>each pair on a separate line
>>
>>For example:
>>
>>"1","Peter"
>>"2","Paul"
>>"3","Mary"
>
> I don't think you really meant to ask for a regular expression. If you
> want to parse a comma-separated file, use the tools for parsing
> comma-separated files: fgetcsv.
> --
> Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc.
I'm looking to validate the data so that it conforms to the aforementioned
pattern before sending it to fgetcsv().
Navigation:
[Reply to this message]
|