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
[Back to original message]
|