separate a string with a limiter string

Hello, good afternoon.
I would like to know if someone can help me.
I have an address PO BOX 82 STREET MD.
I would like to be able to take this string and store PO BOX then 82 then STREET and finally MD as I show in the image
Pregunta2
Each address is structurally different, so I tried to use Cell Splitter with STREET as a token in the first instance, but it deletes everything on the left.
Thanks in advance

Hi @elaadani
I think you can do this using the “ُString Manipulation” node. See the attached example:
split address.knwf (14.2 KB)

3 Likes

Thank you very much for your kindness ! @FtmhRahimi

2 Likes

@FtmhRahimi May I ask one last question?
How can I separate SUITE with numbers and STREET with numbers in different cells in the case that the address has
STREET 82 MD CALI SUITE 110 , CL
Screenshot 2021-02-25 184749

@elaadani Feel free to ask :wink:
You can do this again using the “ُString Manipulation” node. see the attached example:
split address2.knwf (12.9 KB)

3 Likes

Hello @elaadani,

in general this kind of address parsing/splitting requires (often complex) regex to be written. So you should check all the possibly combinations of your addresses, extract rules from it and convert them to one regular expression in Regex Split node for example :wink:

Br,
Ivan

2 Likes

depending on your data it might look different. As ipazin suggested
Regex Split does the job
11

22

bR

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.