Enter Keywords:
1 - 10 of 113(0.016 seconds)
Sort By:
 
I need a preg replace that gets rid of: 1: All Whitespaces. (ie. changing multiple spaces into a single space) 2: special characters.  but these are characters that I wish to keep (.,:()$). I ...
Zones: PHPDate Answered: 12/13/2005 Rating: 7.8 Views: 0
I'm trying to do the follow and am having a very difficult time finding regular expressions and/or algorithms to do this properly: I want to replace Word-A with Word-B outside of any html tags. ...
Zones: PHPDate Answered: 01/04/2006 Rating: 5.0 Views: 0
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 Rating: 7.4 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 Rating: 7.6 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 Rating: 9.4 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 Rating: 9.2 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 Rating: 8.4 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 Rating: 9.4 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 Rating: 8.2 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 Rating: 8.2 Views: 0