A hardware store is using meaningful IDs to identify the items it sells. They start with three numbers, followed by a dash (-) and end in five numbers. Any other string is not a correct ID and should be ignored. Write a regular expression to find all correct tool (150) and household (220) good IDs in the list below. Only the highlighted IDs should be captured by the regex.
Regex details:
Starts with three numbers, either 150 or 220.
If more numbers are in front of the dash, the string is ignored.
Only five numbers after the dash. If there are more, the string is ignored.
150-34584
260-98765
220 98765
220-77654
22098734
780-88452
780-9865
150-666970