I must be misunderstanding how {1}? works.

I have documents that contain three instances of lines starting with "time : "

With these documents, I need to do two things:

1) eliminate from the first instance  of ^(time : ) up to but not including the 
second instance; and

2) eliminate the third instance of ^(time : ) and everything after it up to but 
not including the line starting with "startTime : "

I would expect (^time : (?s).*) to match the entire document and it does. 

So where do I place the {1}? to limit the find to the second, not third 
instance of ^time : ?

Using "(^(time : ){1}?(?s).*)^time" selects up to the third ^time.



-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to