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 ...
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_21663809.htm...
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. ...
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_21684366.htm...
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_...
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_20502540.htm...
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...
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_21101766.htm...
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...
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_21209972.htm...
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:
-------------------------------------------------------------------------------------------------...
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_21280286.htm...
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...
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_21679406.htm...
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>/"...
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_21680547.htm...
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...
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_21794584.htm...
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...
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_22130397.htm...
Zones:
PHPDate Answered: 01/22/2007 Rating: 8.2 Views: 0