Advertisement

1 - 10 of 83 containing alltags:("preg_replace") (0.001 seconds)
I trying to use preg_replace to remove mime headers from my posted emails: ------=_NextPart_000_0013_01C2CDDC.EFF03030 Content-Type: multipart/alternative;      boundary="----=_NextPart_001_...
Zones: PHPDate Answered: 08/09/2004 Grade: A Views: 0
Should be easy , I have a string text from a database... Exact databse text is   [b:5a076bc001] Steve Kaufman [/b:5a076bc001] Where the [b:.. code is used for another application.  Here I w...
Zones: PHPDate Answered: 08/20/2004 Grade: A Views: 0
I am writing a little hack for a Wiki that enables highlighting of text using a background color. I use preg_replace to replace text delimited by ++ to insert the appropriate span. It works fine ex...
Zones: PHPDate Answered: 11/17/2004 Grade: A Views: 0
Hello I need help with a preg_replace() function. This is the string I want to perform it on: -------------------------------------------------------------------------------------------------...
Zones: PHPDate Answered: 01/19/2005 Grade: A Views: 0
I have an array, and the example of a few lines are as so: This is contained in $data[5]; GET /office.jpg HTTP/1.1 POST /blog/manager/uploads.php HTTP/1.1 HEAD /blog/uploads/b/baby/13...
Zones: PHPDate Answered: 12/30/2005 Grade: A Views: 0
Can anyone throw any light on the following problem. $string = "<h1>abc@def#</h1> <h1>xyz</h1>"; echo preg_replace("/<h1>[\w]*<\/h1>/", "123", $string); echo preg_replace("/<h1>[\w@#]*<\/h1>/"...
Zones: PHPDate Answered: 01/01/2006 Grade: A Views: 0
Hi All, I've the following statement: $LinkName = preg_replace('/\s/s', '-', $LinkTitle); Now as far as I understand in regular expressions '\s' stands for whitespace, but I can't figure o...
Zones: PHPDate Answered: 03/29/2006 Grade: A Views: 0
This should be easy for anyone familiar with the syntax required for a preg_replace function.  I want the perl regular expression that will match the following conditions: Any string that begins...
Zones: PHPDate Answered: 01/22/2007 Grade: A Views: 0
Hi, I am looking to do this: Say I am given a string Test test, I need to turn it into TestTest (so remove the space, then change the next letter to cap if it is a letter). Now I can happi...
Zones: PHPDate Answered: 06/18/2007 Grade: A Views: 12
Hi all, Hope you can help! I am passing a string to a third-party application that I create by merging together various other fields. I want to replace characters in the string that are no...
Zones: PHPDate Answered: 09/03/2007 Grade: A Views: 10