Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
reg expression suppose to be greedy
Old 05-14-2004, 11:43 AM reg expression suppose to be greedy
Average Talker

Posts: 21
Location: San Antonio, TX
Trades: 0
Hi, I have some reg expressions setup on my site to parse bbcodes.

ex. preg_replace on a
Code:
/\[b\](.*)\[\/b\]/
This acutally works when I have multiple (b) tags....shouldn't it be greedy and not work correctly if i have several (b) tags.
section31 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-14-2004, 12:20 PM
Average Talker

Posts: 21
Location: San Antonio, TX
Trades: 0
stupid me, i forgot that regexp do one line at a time...lol
section31 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to reg expression suppose to be greedy
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09429 seconds with 12 queries