Hi and thank you all for your help. What you all wrote works great. Chris's advice is probably ideal for my particular case. Thanks again to everyone. Pavel
Dne středa 8. prosince 2021 v 10:00:48 UTC+1 uživatel jj napsal: > 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/80fae167-574c-44d6-a96d-663cd34b654dn%40googlegroups.com.
