Which of the following regex patterns can be used to match one or more occurrences of a digit in a string?

🎲 Try a Random Question  |  Total Questions in Quiz: 20  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Regex Knowledge Test — practice the complete quiz, review flashcards, or try a random question.

A regular expression, sometimes referred to as rational expression, is a sequence of characters that specifies a match pattern in text. Usually such patterns are used by string-searching algorithms for "find" or "find and replace" operations on strings, or for input validation.


Which of the following regex patterns can be used to match one or more occurrences of a digit in a string?