Reply to Re: Validating data

Your name:

Reply:


Posted by Toby A Inkster on 04/30/07 12:34

Schraalhans Keukenmeester wrote:

> Regex IS relatively costly in cpu cycles, no doubt about it, but it can,
> when used correctly, sometimes replace a pageful of ugly string
> manipulation code with one single call.

Regular expressions are one of those examples of sacrificing CPU time in
order to make the code easier to write, easier to read and easier to
maintain.

This is nearly always a beneficial trade.

Other examples:

- Comments in source code;
- Use of constants;
- SQL databases; and
- Logically dividing library functions into multiple files.

--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!

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

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