Ronald's suggestion is nicer, because it uses grep.  But either way works =D  
Glad to help.
--
Brian

On Jul 2, 2010, at 1:19 PM, direwolf wrote:

> Duh. Thanks, Brian.
> 
> I was over-thinking it.
> Been writing javascript rules for a project all day, and got stuck in
> the If/Else mindset I guess! ;-)
> 
> thanks for the quick reply.
> 
> 
> On Jul 2, 1:38 pm, Brian Frick <[email protected]> wrote:
>> You can do that easily this way.
>> 
>> Find all <space><space> and replace with <space>
>> 
>> Then find all <space>P1 and replace with <space><space>P1.
>> 
>> --
>> Brian
>> 
>> On Jul 2, 2010, at 12:18 PM, direwolf wrote:
>> 
>> 
>> 
>>> Hi,
>> 
>>> I'm trying to figure out if I can do a kind of weird find action with
>>> BBEdit.
>> 
>>> I would like to find all instance where 2 spaces occur in my file and
>>> replace with 1 space, but not the instances where the code has
>>> <space><space>P1.
>> 
>>> So if I had the following lines:
>> 
>>> 1 Name  Here  (2 spaces between Name and Here)
>>> 2 Info  P1  (2 spaces between Info and P1)
>>> 3 Another  Example  Here  (2 spaces between Another and Example and
>>> Example and Here)
>> 
>>> If there a way to do a find that would Find the 2 spaces and replace
>>> with 1 space for #1 and #3, but ignore #2 and leave the 2 spaces
>>> before the P1?
>> 
>>> Hope that makes sense!
>> 
>>> Thanks for any help,
>>> kim
>> 
>>> --
>>> 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.
> 
> -- 
> 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.

-- 
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.

Reply via email to