You are here: Re: regular expression help « PHP Programming Language « IT news, forums, messages
Re: regular expression help

Posted by phal on 09/15/05 11:45

---------------------------------------
If this is the regular expression
/^\s*(\d+\.\d+)|(\.\d+)|(\d+)\s*$/

How does this:
40:26:46.302N 79:56:55.903W

==========
You can use this method
=~/(\d{2}):(\d{2}):(\d{2})\.(\d{4})\s+(\d{2}):(\d{2}):(\d{2})\.(\d{4})/gi

I don't know whether you want to slice the letter or not, but you still
able to retireve it by this method.
I haven't check whehter it is correctly run, i just type in as what i
see.

Phal

 

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

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