If it’s exactly three, Have you tried a carat (^) followed by three spaces as 
your regex:

‘^ '

 to find, and an empty box for the replace? If it’s an arbitrary number of 
spaces, try the carat, a space, and a + to indicate any number of the same 
character?

‘^ +’

Note that you don’t include the ‘ characters. I added those so that you can SEE 
the spaces. ;)



> On Jan 18, 2019, at 3:45 PM, Cecily Walker <[email protected]> wrote:
> 
> Hi everyone, 
> 
> I'm really struggling with Grep and trying to write a pattern that deletes 3 
> spaces at the beginning of each line. I have the text of a recipe file that 
> was formerly a numbered list (HTML). When I copied the text, it retained the 
> spaces. I'd like to remove the spaces at the beginning of every line. What is 
> the correct pattern to make this happen? 
> 
> Thanks for the help!
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
> <https://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to