chris porter wrote:
> wow! i conceed.. you are right..doing a bit of testing, i've realized that i 
> have assumed something about the ? that is not quite right.

Hah!  My geek foo is strong!
*thumps chest*

> using "the quick brown fox jumped over the lazy bear"
> ...*b   will match "the quick brown fox jumped over the lazy "
> ...*?b  will match "the quick "
> 
> my mistake here was in the interpretaton of the ? (normally meaning optional) 
> and i'm guessing that when used next to a * or + (and you did just say this) 
> it means "lazy match"

Yeah.  It means different things when you stick it different places, 
which confuses the heck out of people just learning this stuff.  As you 
pointed out, in Perlish, right after an open paren, it means to not 
create a backreference.... unless you add more stuff to make a lookahead!

> i'm glad this came up cause that actually answers my question about how to 
> solve the matching between tags.

w00t!  I'm glad I could help.

> man i feel like a schmuck now. ;)

Eh, we all start somewhere.  When I started with CF (CF5) I came from 
Perl and had never used POSIX regex.  I asked many dumb questions, and 
spouted inaccurate advice more times than I'd like.  You were right in 
most of what you said, which is far better than average. :-)

Anytime you need clarification or help on anything, this is a great 
forum for it.  There are three or four other guys on here at least as on 
top of this stuff as I am, and we all like puzzles.  So bring 'em!

--Ben


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:21:863
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to