I have the following string:
" 105 NE 12 Avenue, Apt #9,\nHallandale Beach, FL 33309"
It should match the following regex:
/\s+(\d+\s+.+,.+,.+\d+)/
Let's break it down:
\s+ #=>
\d+ #=> 105
\s+ #=>
.+ #=> NE 12 Avenue
, #=> ,
.+ #=> Apt #9
, #=> ,
.+ #=> \nHallandale Beach, FL
\d+ #=> 33309
However, it does not match:
> " 105 NE 12 Avenue, Apt #9,\nHallandale Beach, FL 33309" =~ /\s+(\d+\s+.+,.+,.+\d+)/
=> nil
> $1
=> nil
What am I missing here?