|
by: Roland Sippel |
last post by:
Is there anything change in "ereg_replace()" PHP > 4.3.2.
Scripts works in PHP 4.3.1 but NOT in PHP 4.3.2:
$text = "<!-- test -->";
$text = ereg_replace("]+"," ",strip_tags($text));
echo $text . "I<br>\n";
Result:
PHP > 4.3.2
I<br>
|
by: Chris |
last post by:
Hello,
I use a javascript ticker in my header which contains the news in a array
like that
tickercontents='Message1'
tickercontents='Message2'
tickercontents='Message3'
now i want to write an easy script that i can run from my server to change
the message and
was thinking about something like that
|
by: knocte |
last post by:
Hello. I am testing this curious code and I don't understand yet why it
doesn't work with the 2nd case:
Case 1:
$number = "2,4";
$number = ereg_replace(",",".",$number);
echo $number; // displays "2.4"
|
by: Xaradas |
last post by:
Someone could tell me why preg_replace eat a slash when it do replacement?
<?
$stringToReplace = "blah blah {nome} blah blah";
$replacement = "Two slash: \\\\";
$stringToReplace =
preg_replace("/{nome}/Us",$replacement,$stringToReplace,1);
echo($stringToReplace);
#
|
by: pieterprovoost |
last post by:
Hi,
I would like to use the ereg_replace() function to replace wiki-like
syntax, for example:
]
becomes <a href="index.php?page=somepage">somepage</a>
**hello**
becomes <i>hello</i>
|
|
by: Bob Bedford |
last post by:
Hello there,
I need help: I've a string that is used to write down a phone number that
comes from a form and would like to keep it as clean as possible. For
avoiding people to create twice an account using a different syntax.
For this the only char I'd like to allow are number 0-9, '/','.' and spaces.
I'd like to replace everything other by a "space".
|
by: tmcp |
last post by:
Hello I'm a bit new to regular expressions and I'm having a problem
I'm trying to strip any code which is inside a <p> tag for instance from
<p style="margin: 0in 0in 0pt;" class="MsoNormal">
to
<p>
I'm using the following line where $tmpString is the string of html pasted from word.
$tmpString = ereg_replace("<p.*?>", "<p>", $tmpString);
|
by: encepif |
last post by:
I think this is the right command., could someone please show me how
to replace instances of a quote like this " with its html version -
". I am mixed up with the escaping, etc. Thank you :-)
ereg_replace( " " ," '",$fixedstring; )
I appreciate any help.
|
by: Hugh Oxford |
last post by:
I have a string that has been saved in a database from a textarea form
field.
e.g.
$text = "Dear %name
The date is %date
yours,
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|