Thread: [Solved] Wild card confusion
View Single Post
 
Old 08-22-2018, 02:21 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your 1st Find expression doesn't find 'Al Framly' because you've specified there must be at least two characters between the starting letter and the space, whereas that example has only one.

Your 2nd Find expression doesn't doesn't work because of the[*]. Changing that to just * would work, after a fashion, but the results aren't what you'd want.

I doubt you'd want matches with any of [\]^_`, either, which is what [A-z] would give you. Try any of:
(<[!O][A-Za-z]{1,}) ([A-Za-z]{1,})^13
(<[!O][A-Za-z]@) ([A-Za-z]{1,})^13
(<[!O][A-Za-z]{1,}) ([A-Za-z]@)^13
(<[!O][A-Za-z]@) ([A-Za-z]@)^13
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote