![]() |
#5
|
||||
|
||||
![]() Quote:
Find = <[MTWFSondayueshrit]{3,8}, [0-9]{1,2}[nrst][dht] [JFMASONDanuryebchpilgstmov]{3,9}, [12][0-9]{3}> Replace = ^& and you apply the appropriate formatting attributes to the replacement expression. As coded, the above Find expression will find all dates in any of the • dddd, d(ordinal) mmmm, yyyy • dddd, d(ordinal) mmm, yyyy • ddd, d(ordinal) mmmm, yyyy • ddd, d(ordinal) mmm, yyyy formats. Its scope could, of course, be made more restrictive.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
formatting, regex |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
aolszewski | Word VBA | 3 | 11-23-2013 02:07 AM |
![]() |
zdodson | Word VBA | 1 | 07-11-2013 04:53 PM |
![]() |
bertietheblue | Word VBA | 9 | 07-01-2013 12:39 PM |
![]() |
redhin | Word VBA | 5 | 03-05-2013 05:42 AM |
![]() |
RBLampert | Word VBA | 13 | 10-23-2012 04:45 PM |