> "Ben is [a-zA-Z ]*?\."
: > would work in MX. Note the ? after the asterisk. it says get all of a-z
: > but only as many as needed to fulfill the requirements. Be
: stingy. But its
: > still doing more comparisons. If the character an a? a b? a c? etc.
:
: Is the ? in that string part of an attempt on MM's part to not make people
: have to rewrite their existing expressions, or is that just the way it
: works?

Hmm.  That's the way it works in Perl, and in the latest regex RFC spec
IIRC.

I'm not sure what you mean by "make people have to rewrite their existing
expressions" though.  I never worked with earlier versions of CF, so I don't
know if earlier versions of the RegEx parser weren't greedy, but that'd be
unusual.



  --Ben Doom
    Programmer & General Lackey
    Moonbow Software


______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to