Hi Christopher,
On Friday, January 18, 2019 at 4:22:29 PM UTC-8, Christopher Stone wrote
>
> I tend to write patterns like that this way:
>
> ^ {3}
>
> OR
>
> ^[ ]{3}
>
When I tried this, I got an error that read: "This pattern cannot be used,
because PCRE reported an error: quantifier does not follow a repeatable
item (109)"
>
> Surrounding the space with a class helps make it pop out when you read it.
>
> {3} is an enumerator that means 3 of the character or group before it.
>
> 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?
>
>
> What I'd probably start with is something more generic:
>
> ^\h+|\h+$
>
This is the one that finally worked! Thanks so much, Christopher.
Cheers,
Cecily
--
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.