Complete the code to match any string that starts with 'Hello'.
$pattern = "[1]Hello"
The caret ^ is used to anchor the pattern to the start of the string.
Complete the code to match any string that ends with 'World'.
$pattern = "World[1]"
The dollar sign $ anchors the pattern to the end of the string.
Fix the error in the regex pattern to match one or more digits.
$pattern = "\d[1]"
The plus sign + means one or more of the preceding element.
Fill both blanks to create a regex that matches exactly three letters at the start of a string.
$pattern = "[1][a-zA-Z][2]"
The caret ^ anchors to the start, and {3} means exactly three repetitions.
Fill all three blanks to create a regex that matches a string starting with 'ID' followed by 4 to 6 digits and ending immediately.
$pattern = "[1]ID\d[2][3]"
^ anchors to start, {4,6} matches 4 to 6 digits, and $ anchors to end.
