It all depends on the definition of a sentence and if you want to match the
exact word or words "starting with".
Considering sentences as strings of characters separated by dots and exact
word matching then:
Find:
([^\.\s]\s+)(Potato)\b
Replace:
\1\l\2
Sample:
Potato is good and I have a Potato and the Potato were born well this year.
Some more text. Potato is good but Potato chips are good too.
With some indent:
Potato, singular but not Potatoes nor Potatory.
HTH
Jean Jourdain
On Wednesday, December 8, 2021 at 5:27:42 AM UTC+1 [email protected]
wrote:
> On Dec 07, 2021, at 17:50, Pavel <[email protected]> wrote:
>
>
> Would anyone please know what must contain grep so that the first words of
> the sentence do not appear in the search results?
>
> ------------------------------
>
> Hey Pavel,
>
> Tom's idea is simpler, but you can do this:
>
> Find:
>
> (?<!^)(Potato)
>
> Replace:
>
> \L\1
>
>
> --
> Best Regards,
> Chris
>
>
--
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 here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/3d4d0185-5cc3-4eb3-9fe3-f96ebd64e828n%40googlegroups.com.