> It's a (mistyped :) Perl extension that POSIX (and CF) don't support:
> '?:' after the '(' stops the parenthesised section being treated as a
> referenceable subexpression: it's just used for grouping.
Oops. It was mistyped! That's what I get for Copy'N'Pasting. Also,
for trying to answer questions on a Monday. However, it is supported in
CFMX, which no longer uses a POSIX engine.
> There are a number of Perl RE extensions I *really* miss in CF - that's
> one of them, but lazy matching is the big one (ie. take the first, as
> opposed to the longest, match for an RE fragment). Lookahead and
> lookbehind assertions are nice too, and would provide another potential
> solution to your problem.
Non-greedy or lazy matching is supported in CFMX. IIRC, lookahead is as
well, but not lookbehind.
--Ben
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195775
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54