Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Replacement question
I would like to remove two recurring elements from my text document. On one
line is text ('ID'), and the next line is an number htat increases by one each time (i.e. 1, 2, 3, up to ~10, 000). I would like to remove both of these items. After the number is a text field that contains the important information. Any suggestions? Example ID: 237 [Important text here] |
#2
|
|||
|
|||
Hi Kevin,
You have paragraph marks at the end of these lines? ID:¶ 237¶ [Important text here] Then use "Edit Replace", check "Match wildcards", Find what: ID:^13[0-9]@^13 Replace with: (leave the latter empty to replace the matched text with nothing) ^13 matches a paragraph mark, [0-9] matches any number 0-9, and [0-9]@ matches any number of numbers (237, 0102, 183658569, ...). Regards, Klaus Kevin M wrote: I would like to remove two recurring elements from my text document. On one line is text ('ID'), and the next line is an number htat increases by one each time (i.e. 1, 2, 3, up to ~10, 000). I would like to remove both of these items. After the number is a text field that contains the important information. Any suggestions? Example ID: 237 [Important text here] |
#3
|
|||
|
|||
Kevin
If the lines end with a paragraph mark, try a wildcard replase with ID:^13[0-9]@^13 in the find field and leave the replace with field blank. If the lines end with a line break use ID:^l[0-9]@^l -- Greg Maxey/Word MVP A Peer in Peer to Peer Support Kevin M wrote: I would like to remove two recurring elements from my text document. On one line is text ('ID'), and the next line is an number htat increases by one each time (i.e. 1, 2, 3, up to ~10, 000). I would like to remove both of these items. After the number is a text field that contains the important information. Any suggestions? Example ID: 237 [Important text here] |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Form Question - | Microsoft Word Help | |||
Word 2003 and Access 2003 Mail Merge question | Microsoft Word Help | |||
Word question please. | Microsoft Word Help | |||
How can you type an upside down question mark? | Microsoft Word Help | |||
Automatic Table of Contents Question | Microsoft Word Help |