🎴 Flashcard Mode

Linux commands

Card1 / 18
Mastered0
Review0
QuestionClick to flip

Which regular expression would grab a number at the beginning of a line?

AnswerClick to flip back
A
^\d
💡 Explanation:

In regular expressions, '^' denotes the beginning of a line, and '\d' represents any digit (0-9). Therefore, '^\d' matches a digit at the start of a line.

Change Mode