Matching as little as possible can be done by appending a ? *? Zero or more matches+? One or more matches?? Zero or one matches{n}? Exactly n matches{n,}? N or more matches{n,m}? Between n and m matches

In addition to the above PowerShell also supports the quantifiers available in .NET regular expressions, these allow even more specific criteria such as: the string must match at least 5, but no more than 10 items.

The .Net framework uses a traditional NFA regex engine, to learn more about regular expressions look for the book Mastering Regular Expressions by Jeffrey Friedl

“Mere enthusiasm is the all in all. . . .Passion and expression are beauty itself” ~ William Blake