Hi,
I've been struggling with the following for hours and didn't get a working solution. I did get close using one expression and then another to tidy up the resulting text, but haven't managed to find a solution that I can apply to large amounts of text without creating lots of errors. I would appreciate anyone's help on this. I hope the following examples are clear to understand the problem?
Block Text Style (original text):
1 This is a mock text for using find and replace in Word. I need to separate text up that is enumerated, but in block text style. I want to make it into a list style. 2 I have tried using different codes, but none have worked so far. What I have used so far
either removes the number or separates the text up into sentences. 3 I have a lot of text that I need to convert so this is a very repetitive task and it would be helpful to find a way of automating this task. 4. I would be grateful for any help to find a
code for find and replace that can handle this task to convert this current format to the following list style.
Desired List Style (manually modified text):
1 This is a mock text for using find and replace in Word. I need to separate text up that is enumerated, but in block text style. I want to make it into a list style.
2 I have tried using different codes, but none have worked so far. What I have used so far either removes the number or separates the text up into sentences.
3 I have a lot of text that I need to convert so this is a very repetitive task and it would be helpful to find a way of automating this task.
4. I would be grateful for any help to find a code for find and replace that can handle this task to convert this current format to the following list style.
Current Find and Replace Attempt Produces Sentences (erroneous list style):
1 This is a mock text for using find and replace in Word.
I need to separate text up that is enumerated, but block text.
I want to make it into a list style.
2 I have tried using different codes, but none have worked so far.
What I have used so far either removes the number or separates the text up into sentences.
3 I have a lot of text that I need to convert so this is a very repetitive task and it would be helpful to find a way of automating this task.
4.
I would be grateful for any help to find a code for find and replace that can handle this task to convert this current format to the following list style.
I have tried using [0-99] or [0-9] which locates the individual numbers in the text and then ^| to get the manual line break. But, this eliminates the existing numbers leaving text with no enumeration. For the current example, I used . (i.e. period plus space)
to find the end of each numbered text and then .^| to create a manual line break, but as seen above this creates a list of separate sentences?! I then tried the expression: ^l[!0-9] to rejoin the phrases except where there is a number, but although this expression
does find the manual line break and rejoin the phrases ignoring the numbered phrases, it eats the first letter of the rejoined phrases!
Appreciate the help,
John.