Regex Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreRegex Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old January 15th, 2009, 09:34 AM
prometheuzz prometheuzz is offline
User 165270
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 497 prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 5 Days 10 h 14 m 35 sec
Reputation Power: 936
Quote:
Originally Posted by liamdawe
Oh really then explain why my now working regex won't work unless i escape them?


Then your PCRE engine is very strangely compiled. In normal cases, you don't need to escape them. Period.

Reply With Quote
  #17  
Old January 15th, 2009, 09:36 AM
liamdawe's Avatar
liamdawe liamdawe is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2006
Location: England
Posts: 634 liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 59 m 41 sec
Reputation Power: 57
Send a message via MSN to liamdawe Send a message via Google Talk to liamdawe
You are right, it didn't work as i was escaping the [ in the second part of it still.

But re-read my other post with 5 points now, all true and needed for it to work.

For refence i use this now:
PHP Code:
// change quote html back to bbcode
    
$edit preg_replace("#<div class=\"container\"><div class=\"box\">{$lang['quoting']}</div><div class=\"box2\">(.*?)</div></div>#s",'[quote]$1[/quote]',$edit); 

Reply With Quote
  #18  
Old January 15th, 2009, 09:37 AM
prometheuzz prometheuzz is offline
User 165270
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 497 prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 5 Days 10 h 14 m 35 sec
Reputation Power: 936
Quote:
Originally Posted by liamdawe
Oh really then explain why my now working regex won't work unless i escape them?


Did you run the script I posted in reply #13? If so, what was the output?

Reply With Quote
  #19  
Old January 15th, 2009, 09:39 AM
prometheuzz prometheuzz is offline
User 165270
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 497 prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 5 Days 10 h 14 m 35 sec
Reputation Power: 936
Quote:
Originally Posted by liamdawe
You are right, ...


Yes, I knew that.
And to be frank, you were acting like a smart@ss.

A good day to you.

Reply With Quote
  #20  
Old January 15th, 2009, 10:29 AM
liamdawe's Avatar
liamdawe liamdawe is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2006
Location: England
Posts: 634 liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 59 m 41 sec
Reputation Power: 57
Send a message via MSN to liamdawe Send a message via Google Talk to liamdawe
I was not acting like a "smart@ss" i was simply stating what i saw, which was wrong and i corrected myself by saying you was right, jeez some people are never happy.

Last edited by liamdawe : January 15th, 2009 at 10:32 AM.

Reply With Quote
  #21  
Old January 15th, 2009, 10:44 AM
prometheuzz prometheuzz is offline
User 165270
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 497 prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level)prometheuzz User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 5 Days 10 h 14 m 35 sec
Reputation Power: 936
Quote:
Originally Posted by liamdawe
I was not acting like a "smart@***" i was simply stating what i saw,


Well, then our opinions of what a smart@ss is differ. I told you multiple times that < and > are not meta characters and you kept on repeating that they were and even gave me a smug response in reply #15.

I must confess that I was already a bit ticked of because you told me to not assume that you haven't tried. I mean, your post didn't give any proof of the fact that you DID try something before posting, and I told you in a normal fashion as to why it is a good idea to post what you have tried. IMO, there was no need to tell me what I should or shouldn't do or assume. It is you who was asking for help, not me.

Quote:
Originally Posted by liamdawe
which was wrong and i corrected myself by saying you was right,


I didn't say so before, but I appreciated that.

Quote:
Originally Posted by liamdawe
jeez some people are never happy.


Well, I am happy this thread is at it's end (well, almost...).
No worries, this is my last post in any of your threads.

Reply With Quote
  #22  
Old January 15th, 2009, 04:14 PM
liamdawe's Avatar
liamdawe liamdawe is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2006
Location: England
Posts: 634 liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level)liamdawe User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 59 m 41 sec
Reputation Power: 57
Send a message via MSN to liamdawe Send a message via Google Talk to liamdawe
Well thanks anyway it is sorted and i do appreciate any help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreRegex Programming > Help with some regex

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap