Jump to content

arrgh ! ... preg_replace


poe

Recommended Posts

i am reading an html file...

 

i do not have the string.. i am trying to find it...

 

so the string i am looking for is

 

"basePath":"\/"

 

so i need to find the string in the page and change to

 

"basePath":"www.mypage.com\/"

 

ie.  here is part of the full string i am searching

<!--//--><![CDATA[//><!--

jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"base","theme_token":"5XoHI1_0PUfE

 

 

Link to comment
https://forums.phpfreaks.com/topic/249603-arrgh-preg_replace/#findComment-1281421
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.