Reply to Re: numeric/alpha pairs regular expression

Your name:

Reply:


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().

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация