Search code examples
regexms-wordnon-greedy

Regular expression for Word wildcard search to find parentheses including at least 3 consecutive digits


In the following example:

airspeed (AS) user (104A, 104B) device (101) vehicles (105A-C)

the search should find (104A, 104B), (101), and (105A-C) but not (AS).

I tried using [\(]*[0-9][0-9][0-9]*[\)] but that found everything from the (AS) to the (105A-C).


Solution

  • How about this:

     [(][0-9][0-9][0-9]*[)]
    
    
    [\(][0-9][0-9][0-9]*[\)]
    

    or

    [(]([0-9]{3,})*[)]
    

    This is not a Regular expression Just a wildcard search. This "Find and Replace" dialog box does not support the Regular expression.