Recall that in the street address, you are looking for the following pattern:
The first part of the pattern string should match the street number. The street number is a sequence of digits located at the beginning of the string. For the sake of this exercise, I will ignore street addresses that contain letters (such as 10A or 10B) or ranges (such as 110-120). The following should be sufficient to capture the street address:
- A ^ symbol to indicate the beginning of the string
- A [0-9] range to indicate the range of all digits
- A + symbol following the digit range to indicate an indefinitely long sequence of digits
- A \s+ symbol to indicate ...