dot-space in href regexp needed
From: Patryk Konieczka (NO.patrol.SPAM_at_patrolek.blink.NO.pl.spam)
Date: 09/30/04
- Next message: Ryan Hubbard: "Serializing Session variables. Cuts off after a given length????"
- Previous message: lawrence: "how to use convert_uuencode()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 18:16:53 +0200
Hello
Here's the thing
I have a database edited by some company workers editing descriptions of
books in the sotre , unfortunately these workers do not have the habit of
inserting a space character after word-ending dot, this is why i use the
function:
function getCorrect($txt) {
$txt=str_replace(",",", ",$txt);
$txt=str_replace(".",". ",$txt);
$txt=str_replace(". ,",".,",$txt);
$txt=str_replace(". . . ","... ",$txt);
$txt=str_replace(":",": ",$txt);
$txt=str_replace(";","; ",$txt);
$txt=str_replace("]","] ",$txt);
$txt=str_replace("... ]","...] ",$txt);
$txt=str_replace(")",") ",$txt);
$txt=str_replace("... )","...) ",$txt);
$txt=str_replace(" "," ",$txt);
$txt=str_replace("„ ","„",$txt);
$txt=str_replace(". )",".) ",$txt);
return $txt;
}
this basically closes the problem, but what bothers me recently is that i
need to indert a href link into this description and i get a result like
www. blah. com/index. php
is there anone who could help me out writing a regexp converting a ". " into
"." if it is inside href="xxx"
i'm not very familiar with regexp's so i would really appreciate your help
TIA
Patrol
- Next message: Ryan Hubbard: "Serializing Session variables. Cuts off after a given length????"
- Previous message: lawrence: "how to use convert_uuencode()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]