Non-greedy regex?
Alex Rice
alrice at ARCplanning.com
Mon Aug 18 06:46:01 EDT 2003
On Monday, August 18, 2003, at 09:23 AM, Jim Witte wrote:
> Is there an elegant way (without having to count back characters and
> such from endMatch) to get matchChunk to do what I want and do a
> "non-greedy" match?
Just a couple of ideas - gotta run.
1) use replaceText instead?
2) Don't put the \n explicitly, use ^ and $ to anchor the match to the
start or end of the line. It may not be necessary to anchor it at all.
Alex Rice, Software Developer
Architectural Research Consultants, Inc.
http://ARCplanning.com
More information about the use-livecode
mailing list