good day dear community,
well i am in big big trouble - i need some regex to solve a problem! Can you help me a bit! That would be great! Well - i mused alot how to call the subject: Finally i came to: “Regex or explode to array: I need some help in a simple string!”
i have a spreadsheed in calc. with some records. There is a column that contains the following information
Ecole Saint-Exupery
Rue Saint-Malo 24
67544 Paris
Well i need to have those lines divided into at least three columns
name: Ecole Saint-Exupery
street: Rue Saint-Malo 24
postal code and town 67544 Paris
Or even better - i have divided the postal code and town into two seperate columns!? Question: is this possible? Can (or should) i do this in calc (open document-formate)? Do i need to have to use a regex and perl or am i able to solve this issues without an regex?
Note - finally i need to transfer the data into MySQL-database…
I look forward to a tipp…
greetings
BTW: you can see all the things in a real world-live-demo: KM-Bayern - Suche in der bayerischen Schuldatenbank - see the filed
Schulname
Straße
please Ort
These field contains three things - the name, the street and the Postal Code and the town! Question: can this be divided into parts!? If you copy and paste the information - and drop it to calc then you get all the information in only one cell. How to divide and seperate all those information into three cells or even four?
BTW - i tried to translate the information to hex-code - see the follwoing…:
Staatl. Realschule Grafenau
Rachelweg 20
94481 Grafenau
00000000: 53 74 61 61 74 6C 2E 20 52 65 61 6C 73 63 68 75
00000010: 6C 65 20 47 72 61 66 65 6E 61 75 20 0A 52 61 63
00000020: 68 65 6C 77 65 67 20 32 30 0A 39 34 34 38 31 20
00000030: 20 47 72 61 66 65 6E 61 75 20 20
Well you see true Hex-code: but i do not know if this helps here!??
Can you help me to solve the problem. Do i need to have a regex!?
Or do i benefit from transfering this dataset via explode() or split ()-Function to an array!?
Well i am not sure - can you give me some starting points!?
That would be great!
i love to hear from you
greetings…
db1:)
Many thanks in advance for any and all help!