O'Reilly logo

Mastering Windows PowerShell Scripting by Brenton J.W. Blawat

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Regular expression quantifiers

When you are writing regular expressions, there are instances where you need to validate if one or more characters exist in the string being evaluated. Regular expression quantifiers evaluate a string to determine if it has a certain number of characters. In the instance of the string ABC, you can write a quantifier expression to evaluate that the string has at least one A, one B, one C, and no D. If the expression has the designated number of characters, it will evaluate as True. If the expression contains less or more than the designated amount, it will return as False.

The regular expression quantifiers include the following characters:

  • *: This character requires zero or more matches of the preceding character to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required