X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/75fc8671809ed40a2bc14d463f1068cefcc82140..ea90c9e9fe4e63beee54ce57b3f503e3ebb05f0b:/tools/doxygen/index_php.pl diff --git a/tools/doxygen/index_php.pl b/tools/doxygen/index_php.pl index ed777a569e..567b95a1a6 100755 --- a/tools/doxygen/index_php.pl +++ b/tools/doxygen/index_php.pl @@ -38,11 +38,14 @@ while(defined($line=)) { } close FILE; -$onglets =~ s/href=\"/href=\"doc\//gi; -$onglets =~ s/src=\"/src=\"doc\//gi; +# (?!http) : A zero-width negative look-ahead assertion. +# For example "/foo(?!bar)/" matches any occurrence of "foo" that isn’t followed by "bar". -$body =~ s/href=\"/href=\"doc\//gi; -$body =~ s/src=\"/src=\"doc\//gi; +$onglets =~ s/href=\"(?!http)/href=\"doc\//gi; +$onglets =~ s/src=\"(?!http)/src=\"doc\//gi; + +$body =~ s/href=\"(?!http)/href=\"doc\//gi; +$body =~ s/src=\"(?!http)/src=\"doc\//gi; open FILE,$inputphp; open OUTPUT,"> $output";