I am no GREP expert, but I really didn't think adding a '?' would make
that find only 0 or 1 instance. And, actually searching blocks of text
using '.*?" bears that out.
My understanding was that adding the '?' made the search non-greedy.
Given this as sample data:
63susail&*^f#$nm(F57;"yubykif8;"ic74hf
Using sail.*?;" would find this:
sail&*^f#$nm(F57;"
but, using .* would find this:
sail&*^f#$nm(F57;"yubykif8;"
I'm pretty new to GREP, so if I'm not understanding this correctly,
please help me out.
Ken
Ken Winterberger & Paula Smith wrote:
On Feb 25, 2008, at 8:30 AM, Ken Loomis wrote:
Try this:
sail.*?;"
Ken
This was one of my first thoughts; it doesn't work.
Here is some example text; the real text has hundreds of lines. I
want to find/replace the segment stating with 'sail' and ending with
';
2fr4sail=g%fst5rt423;"a
#$fvsailsss7&8!:;"22
s6gysail76f9^h$2;"99d
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>