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

Posts: 21
Location: San Antonio, TX
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
 
When You Register, These Ads Go Away!
     
Old 05-14-2004, 11:20 AM
Average Talker

Posts: 21
Location: San Antonio, TX
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

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
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.10391 seconds with 13 queries