Highlighted

Help with deleting all characters before a given word in a line?

New Here ,
Jun 22, 2020

Copy link to clipboard

Copied

(Beginner here) I'm working on an answer key for an (unofficial) ACT Solutions Manual, and I'm working with text from a placed Word document. This answer key is compiled of lines that begin with manually inserted bulleted numbers before a given answer letter. Example:

1. Answer: B

2. Answer: C

 

However, this lack of systematic formatting me no way to edit or reformat all of the bullets as one style. So, I created a paragraph style and applied bulleted numbers as part of the formatting for each "Answer" line. The problem is, the previously inputted numbers remain. So it looks like this:

1.  1. Answer: B

2.  2. Answer: C

 

Is there any way through which I can identify and delete those manually inputted digits so that I am left with just the formatted bullets? There is a math section among the parts of this answer key so it wouldn't work to delete all digits. I figured there would be some method by which I find and delete all characters before "Answer:", but could not find a way to do this. I am new and not familiar with GERP codes, so any help is appreciated! 🙂

Adobe Community Professional
Correct answer by Manan Joshi | Adobe Community Professional

Try the following, Find Grep dialog

Find What

^(\d+\.\s+)(?=Answer:)

Change to remains blank and you can then find/change or change all

 

-Manan

TOPICS
How to

Views

56

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Help with deleting all characters before a given word in a line?

New Here ,
Jun 22, 2020

Copy link to clipboard

Copied

(Beginner here) I'm working on an answer key for an (unofficial) ACT Solutions Manual, and I'm working with text from a placed Word document. This answer key is compiled of lines that begin with manually inserted bulleted numbers before a given answer letter. Example:

1. Answer: B

2. Answer: C

 

However, this lack of systematic formatting me no way to edit or reformat all of the bullets as one style. So, I created a paragraph style and applied bulleted numbers as part of the formatting for each "Answer" line. The problem is, the previously inputted numbers remain. So it looks like this:

1.  1. Answer: B

2.  2. Answer: C

 

Is there any way through which I can identify and delete those manually inputted digits so that I am left with just the formatted bullets? There is a math section among the parts of this answer key so it wouldn't work to delete all digits. I figured there would be some method by which I find and delete all characters before "Answer:", but could not find a way to do this. I am new and not familiar with GERP codes, so any help is appreciated! 🙂

Adobe Community Professional
Correct answer by Manan Joshi | Adobe Community Professional

Try the following, Find Grep dialog

Find What

^(\d+\.\s+)(?=Answer:)

Change to remains blank and you can then find/change or change all

 

-Manan

TOPICS
How to

Views

57

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 22, 2020 0
Adobe Community Professional ,
Jun 22, 2020

Copy link to clipboard

Copied

Try the following, Find Grep dialog

Find What

^(\d+\.\s+)(?=Answer:)

Change to remains blank and you can then find/change or change all

 

-Manan

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 22, 2020 1
New Here ,
Jun 24, 2020

Copy link to clipboard

Copied

It worked! Thank you so much!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2020 0