Search the web
Sign In
New User? Sign Up
rss-dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problem with regular expression on rss_utils?   Message List  
Reply | Forward Message #7447 of 7450 |
Hi

On line 28 of rss_utils, under the function parse_w3cdtf, there's this regular
expression
$pat =
"/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(:(\d{2}))?(?:([-+])(\d{2}):?(\d{2})|(Z\
))?/";

It should match the ISO 8601 date format (ex: 2005-07-26T12:16:26+02:00)

However, the parenthesis are wrong for the matching seconds. This way it will
produce a
":26" instead of the desired "26"

This of course makes the next function gmmktime fail.

You should fix the regular expression and keep the : out. Should be an easy fix.




Wed Jan 16, 2008 1:03 pm

poingg
Offline Offline
Send Email Send Email

Forward
Message #7447 of 7450 |
Expand Messages Author Sort by Date

Hi On line 28 of rss_utils, under the function parse_w3cdtf, there's this regular expression $pat =...
poingg
Offline Send Email
Jan 16, 2008
3:00 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help