Login
Remember
Register
PHPOnlineSupport
Questions
Unanswered
Tags
Categories
Ask a Question
Ask a Question
preg_replace non sensitive
0
votes
4.5k
views
asked
Jul 16, 2018
in
General
by
John
<?php
$find ="/$this_exp/"; $replace_this ="<b>$word</b>";
echo preg_replace ($find, $replace_this, $output);
?>
preg_replace
replace
case-sensitive
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1
Answer
0
votes
answered
Jul 16, 2018
by
anonymous
$find ="/$this_exp/i"; //note the i for insensitive
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Related questions
+2
votes
2
answers
10.8k
views
Replace all last occurrence of characters of string
asked
Jun 3, 2016
in
General
by
Neethu
string
replace
php
0
votes
1
answer
867
views
How to Redirect Non-www to www URLs using htaccess ?
asked
May 25, 2021
in
General
by
jjavelin
seo
http
https
0
votes
1
answer
3.5k
views
Fix for “invalid use of non-static member function” in a library
asked
Sep 19, 2021
in
Arduino
by
Justin
arduino
0
votes
2
answers
2.1k
views
The server requested authentication method unknown to the client
asked
Feb 16, 2022
in
General
by
Jasna
mysql
authentication
error
0
votes
1
answer
1.0k
views
How to format date and time in Day.js
asked
Jan 26, 2022
in
General
by
Jithu
day
js
date
time
format
0
votes
1
answer
1.7k
views
DataTables help unknown parameter for row
asked
Jan 26, 2022
in
General
by
Sanal
datatables
jquery
All categories
General
(56)
CMS
(21)
Frameworks
(21)
eCommerce
(58)
IOT - Internet Of Things
(10)
Javascript
(10)
Databases
(5)
Categories
All categories
General
(56)
CMS
(21)
Frameworks
(21)
eCommerce
(58)
IOT - Internet Of Things
(10)
Javascript
(10)
Databases
(5)
Most popular tags
magento
php
wordpress
wp
laravel
category
database
module
product
arduino
kohana
js
jquery
admin
date
url
sing
birds
json
javascript
cms
cache
error
configurable
love
mac
xbee
serial1
serial
seo
encrypt
recaptha
phalcon
truncate
fishpig
include
backend
function
email
plugin
post
arduinojson
popup
mongodb
security
migrate
editor
decrypt
python
iot
map
shipping
password
core
log
mage
pear
string
replace
extension
import
php7
form
order
day
google
image
youtube
https
http
customer
syntaxerror
datatables
nested
x-ctu
xctu
pan-id
mesh
coordinator
esp
baud
esp8266
esp32
path-issue
site-links
adblocker
qr-code
barcode
samsung
newsletter
feed
auto-numbering-column
datatable
admin-bar
adminbar
toolbar
address16
address64
301
302
...