In my app, I get incoming requests with texts as such:
05541000 123 Name of Thing
I need to break that down in 3 parts:
- ZIP Code (the first 8-digit number)
- Number (the 2nd number)
- The rest
I do an extract with regex
with the expression \S+
so ZIP is the first item
, Number is item #2
. When I try to capture the name with from item #3
it gives:
Name, of, Thing
I understand; it gives a comma-separated list in a line. I figured I would extend from item #3:make static:find and replace
where it is finding ,
and replacing with nothing. Yet the result is the same: Name, of, Thing
.
What am I doing wrong?