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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-09-2013, 07:18 PM   #1
Mr Pheer
Retired
 
Mr Pheer's Avatar
 
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);
What it is supposed to do, is allow an apostrophe to be in my replacement text. So in my text, where i have "{[SPIN--they are|they?re]}" it should return "they are" or "they're".
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
Mr Pheer is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2013, 07:29 PM   #2
jimmycastor
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 ??
jimmycastor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2013, 07:46 PM   #3
Mr Pheer
Retired
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Posts: 21,137
Quote:
Originally Posted by jimmycastor View Post
not sure but i see this ' one --> here in this part |']*) ..that could be the problem,

try using ´ instead of ' ..see the difference ??
Thanks... but that gives me the same result as before
__________________
2 lifeguards for Jessica
Mr Pheer is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2013, 08:00 PM   #4
shake
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
shake is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2013, 08:52 PM   #5
Mr Pheer
Retired
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Posts: 21,137
Quote:
Originally Posted by shake View Post
You can always try posting it on stackoverflow - you'll probably get a fix in minutes.
I got a sarcastic remark there within minutes.

Damn, and I used to thing GFY was a rough place...
__________________
2 lifeguards for Jessica
Mr Pheer is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2013, 09:01 PM   #6
Mr Pheer
Retired
 
Mr Pheer's Avatar
 
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
Mr Pheer is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2013, 09:12 PM   #7
Mr Pheer
Retired
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Posts: 21,137
Quote:
Originally Posted by jimmycastor View Post
not sure but i see this ' one --> here in this part |']*) ..that could be the problem,

try using ´ instead of ' ..see the difference ??
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
Mr Pheer is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2013, 10:00 PM   #8
shake
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

Last edited by shake; 04-09-2013 at 10:02 PM.. Reason: edit - getting tired and missread that...
shake is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2013, 04:14 AM   #9
Freedom6995
Friends of Venus founder
 
Freedom6995's Avatar
 
Industry Role:
Join Date: Jul 2010
Posts: 1,968
Quote:
Originally Posted by Mr Pheer View Post
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.
Found that out the hard way myself. Ditto on the glasses...
Freedom6995 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2013, 05:17 AM   #10
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
Quote:
Originally Posted by shake View Post
You can always try posting it on stackoverflow - you'll probably get a fix in minutes.
sometimes it takes days and many questions go unanswered too; when you get stuck on bigger issues, fiverr is your best friend
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.