![]() |
|
#1
|
|||
|
|||
|
Supposed there are a few lines on a Word document. Code:
[1990]File[US] [1991]File[UK] [1992]File[JP] Code:
Find:
\[[0-9]{4}\]
Replace:
???
Any help is appreciated. |
|
#2
|
|||
|
|||
|
Try the following wildcard Find/Replace:
Find What: \[([0-9]{4})\] Replace With: (\1) |
|
#3
|
|||
|
|||
|
#Robert2
It works like a charm. Till today I have realised what (), \1 or \2 means. Many thanks! |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
regular expressions in footnotes
|
loes | Word | 3 | 09-04-2019 07:52 AM |
Regular expressions for text with complex formatting
|
Kreol2013 | Word VBA | 1 | 04-12-2013 07:33 PM |
Regular Expressions: match words within quotes?
|
tinfanide | Word VBA | 3 | 02-02-2013 10:07 PM |
| regular expressions for empty lines | eNGiNe | Word | 1 | 01-21-2013 06:38 AM |
Regular Expressions: [!0-9] does not work???
|
tinfanide | Excel Programming | 4 | 05-30-2012 04:09 AM |