![]() |
|
|
|
#1
|
||||
|
||||
|
If you consider what '0 or more occurrences' means, in the context of looking for [A-Z]{1} followed by '0 or more occurrences' of [0-9], that's really no different than looking for [A-Z]*; after all, '0 or more occurrences' means you don't really care whether there are any of [0-9] after [A-Z].
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#2
|
|||
|
|||
|
Maybe I should have put it more clearly.
I want to find C C1 C2 but not CA If Find What: [A-Z]* it returns C, C1, C2 and CA (which is not wanted). |
|
|
|
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 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 |
| Issue skipping characters by Regular Expressions in Word | pochtara | Word VBA | 0 | 04-01-2010 05:37 AM |