![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Retired
Industry Role:
Join Date: Dec 2002
Posts: 21,137
|
Can someone help with a PHP problem?
So I've got this piece of code that wont play nice.
Code:
preg_match_all("/(\{\[)([\w-\d\s\.\|']*)(\]\})/i",$replace_text, $match); But instead, it simply does nothing and spits out the entire spintax code just as I typed above. The only time this does not work, is when a replacement text has an apostrophe. It works perfectly everywhere else. Been trying to fix this for two days and I'm about to throw my keyboard through my fucking monitor. Can someone help, please?
__________________
2 lifeguards for Jessica |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Join Date: Jul 2006
Posts: 342
|
not sure but i see this ' one --> here in this part |']*) ..that could be the problem,
try using ´ instead of ' ..see the difference ?? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Retired
Industry Role:
Join Date: Dec 2002
Posts: 21,137
|
Thanks... but that gives me the same result as before
__________________
2 lifeguards for Jessica |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
frc
Industry Role:
Join Date: Jul 2003
Location: Bitcoin wallet
Posts: 4,663
|
You can always try posting it on stackoverflow - you'll probably get a fix in minutes.
__________________
Crazy fast VPS for $10 a month. Try with $20 free credit |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Retired
Industry Role:
Join Date: Dec 2002
Posts: 21,137
|
Quote:
Damn, and I used to thing GFY was a rough place...
__________________
2 lifeguards for Jessica |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Retired
Industry Role:
Join Date: Dec 2002
Posts: 21,137
|
Fuck, who knew there are three different apostrophes on your keyboard? If you dont use the right one in the code, the shit wont work.
I'm going to get some glasses tomorrow.
__________________
2 lifeguards for Jessica |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Retired
Industry Role:
Join Date: Dec 2002
Posts: 21,137
|
I cut and pasted yours but it didnt work... someone on stackoverflow posted one that looks the same to me, I cut & pasted that one, and it worked.
__________________
2 lifeguards for Jessica |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
frc
Industry Role:
Join Date: Jul 2003
Location: Bitcoin wallet
Posts: 4,663
|
Glad you got it fixed
__________________
Crazy fast VPS for $10 a month. Try with $20 free credit |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Friends of Venus founder
Industry Role:
Join Date: Jul 2010
Posts: 1,968
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |