by: JDJones |
last post by:
I'm having some trouble getting this replacement to work efficiently. I
have the following code:
$thing = preg_replace("(\r\n|\n|\r|\t)", "", $thing1);
What I want to do now is to get it to...
|
by: Justin Koivisto |
last post by:
I am replacing a string in a text block that has a literal $ in it, and
preg_replace is seeing it as a backreference. Here is what I am using:
foreach($price_lists as $list)...
|
by: Sebastian Araya |
last post by:
Hello,
I have a string like this:
var1: value1...valueI var2: value1...valueJ ... varN:
value1...valueK
this is an example:
breakfast: coffee eggs lunch: sandwich apple dinner: chicken...
|
by: TXSherry |
last post by:
Hi,
I cannot seem to wrap my brain around preg_replace. Though I've read
the help file backwords and forwards. :/ Hoping someone can give me
a solution here.
Problem: Given string 'str'...
|
by: yawnmoth |
last post by:
say i have the following script:
<?
$test = "aaaaa";
print '"' . preg_replace('/.*/','x',$test) . '"<br>';
$test = "\n\n\n\n\n";
print '"' . preg_replace('/.*/','x',$test) . '"';
?>
the...
|
by: Margaret MacDonald |
last post by:
I've been going mad trying to figure out how to do this--it should be
easy!
Allow the user to enter '\_sometext\_', i.e., literal backslash,
underscore, some text, literal backslash, underscore...
|
by: Fotozine |
last post by:
well, I have this peace of code which isn't woking as I would like it to
work.
$tekst = preg_replace('/\\\"/', '"', $tekst);
In my forms, I would like to change " to " but this line is actualy...
|
by: Charles |
last post by:
I'm new to this regular expression stuff. I'd like to use preg_replace to
eliminate a known multi-line signature from the body of an E-mail. Say the
body text is in $body, and the sig is this
...
|
by: julianmlp |
last post by:
I'm fairly new to regex code, and I'm trying to find a way to replace
any text after "///" (three slashes) and before a "\n" character.
I've tried with:
$filen = preg_replace("///./\n$", "",...
|
by: erikcw |
last post by:
Hi all,
I'm trying to write a regex pattern to use in preg_replace. Basically
I want to put around every line (\n) in this variable.
However, I need to exclude lines that already have brackets...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|