Copy link to clipboard
Copied
Can you use GREP to find a word (example "baseball") then go to the end of the paragraph and insert an asterick?
Before
Baseball is a sport played between two teams.
It is a bat-and-ball game.
After
Baseball is a sport played between two teams.
It is a bat-and-ball game.*
(^/) is just my signing on Forums! 😉
Find: (?s)Baseball.*\K$
Replace by: *
or
Find: Baseball\X*\K$
Replace by: *
Copy link to clipboard
Copied
Find: Baseball.*\K$
Replace by: *
(^/) The Jedi
Copy link to clipboard
Copied
Thank you, FRIdNGE!! Much appreciated.
Copy link to clipboard
Copied
Find:
(Baseball|baseball)(.+)
Change to:
$0*
Copy link to clipboard
Copied
Thank you, Jeffery_Smith!
I just realized that both solutions just go to the end of the sentence. Is there a way to go to the end of the story?
Copy link to clipboard
Copied
(?s)Baseball.*\K$
(^/)
Copy link to clipboard
Copied
Thanks, FRIdNGE but that just added "(^/) to the end:
Baseball is a sport played between two teams.
It is a bat-and-ball game.(^/)
NEVERMIND! LOL!! I didn't realize (^/) is part of your signature!!!
Copy link to clipboard
Copied
Now I see you can just add the asterisk to the change. The first time I tried, it didn't work:
Find: (?s)Baseball.*\K$
Change: *
Copy link to clipboard
Copied
(^/) is just my signing on Forums! 😉
Find: (?s)Baseball.*\K$
Replace by: *
or
Find: Baseball\X*\K$
Replace by: *
Copy link to clipboard
Copied
LOL! Thanks FRIdnge!! You're the best and I appeciate the help!