View Single Post
 
Old 06-30-2014, 07:15 AM
Ulodesk Ulodesk is offline Windows 7 64bit Office 2013
Word 2013 Expert Cert
 
Join Date: Sep 2009
Location: Virginia
Posts: 872
Ulodesk is on a distinguished road
Default A further exploration of search syntax mystery

In my continuing quest for fluency in this domain, another question has arisen.
Here is the working wildcard search Paul provided for my list of "Name Name Year" to find the (4-digit) years and move them. The second is my attempt at an alternate.

([!0-9^13]@)( )(<[0-9]{4})^13

([!0-9^13]{1,})( )(<[0-9]{4})^13

It would seem to me that "one or more" represented by the @ symbol could be substituted with {1,} which is "at least one". Yet, the second doesn't work, nor does {2,}. However, the following, which has no specification in the same place, does work:

([!0-9^13])( )(<[0-9]{4})^13

(although it selects only the last letter of the second name, up to the line return, rather than the entire paragraph up to the line return, as Paul's does).

What prevent the {1,} from working?

Thank,s as always.
Reply With Quote