You are here: Simple Regular Expressions Question « All PHP « IT news, forums, messages
Simple Regular Expressions Question

Posted by Gb on 05/20/06 19:54

I'm trying to use preg_match to isolate a line of text in a webpage that
has city, state, country.

What I want to do is use preg_match to find that line, which can be in
different places. I am trying to strip some data from some webpages that I
have. So I'm writing a PHP script to do it.

I was hoping to do a preg_match that could find a variable number of
letters followed by a comma, follwed by a space, followed by another
variable number of letters, followed by a comma. Then I know I have the
line I'm looking for.

Any suggestions?

 

Navigation:

[Reply to this 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

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