![]() |
|
|
Thread Tools | Display Modes |
#15
|
|||
|
|||
![]()
I believe the .Pattern thing works opposite to your line of thought.
.Pattern = "[^characters you want to keep]" .Pattern = "[^A-Za-z0-9\ ]" keeps upper case A thru Z keeps lower case a thru z keeps numerals 0 thru 9 don't know what the back slash does as back slashes are removed keeps spaces I add a row to the top of your data and put in this .Pattern = "[A-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!" & "#$%&'*+/=\?^_`{|}~-]+)*@(?:[a-z0-9](?:" & _"[a-z0-9-]*[a-\z0-9])?\.)+[a-z0-9](?:" & _"[a-z0-9-]*[a-z0-9])?" use debug.print and this is what it gets reduced to using .Pattern = "[^A-Za-z0-9\ ]" Pattern AZ09az09 az09 az09az09az09 az09az09 |
Tags |
case, search, whole word match |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to speed up macro | AC PORTA VIA | Excel | 3 | 10-30-2015 08:58 PM |
Excel formula required to speed up process of creating species rarefaction curves. Ecology! | Tim_F | Excel | 2 | 07-18-2014 04:56 AM |
![]() |
ptz | Word | 2 | 09-20-2012 06:37 AM |
![]() |
lucky67 | Office | 1 | 01-26-2012 09:20 PM |
![]() |
cadams | Office | 1 | 12-07-2010 10:01 AM |