[Tfug] Regexps

Robert Hunter hunter at tfug.org
Thu May 3 00:22:33 MST 2007


> I came in to second what Rob said...Beat me to the punch, I guess :)
>
> Why use a regexp when math can save the day?

Thanks, Chris. :-)  But now that I think about it, Jeremy's solution
makes more sense: seeing as George is using regex to parse the number, he
might as well use a better regex to get what he needs.

Actually, the best solution would use a XML library.  I know Perl can has
XML stuff.  I would be surprised if PHP did not.

-- 
Rob




More information about the tfug mailing list