Reply to unexpected T_DNUMBER = HUH?

Your name:

Reply:


Posted by comp.lang.php on 12/06/05 21:16

Offensive Line:
[PHP]
$contents =
preg_replace('/([\s\t]*\*+[\s\t]*@[vV][eE][rR][sS][iI][oO][nN][\s\t]+)'
.. str_replace('/', '\\/', preg_quote($oldversion)) . '([\n\r\s\t]*)/e',
'$1' . $newversion . '$2', $contents);
[/PHP]

Bluntly put, I simply don't get it. It's bad enough that the RegExp
fails, but why would it break and why break in such a way that makes no
sense to anyone?

This is all I want to do:

REPLACE

* @version 1.0.0

WITH

* @version 1.1.0

Inside each non-binary file that contains that exact line pattern!

And that's all.

Thanx
Phil

[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

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