python – Regex find all word after a group and up to first digit
i’ve this string
- FTBVHT HJMOW W0001 BIANCO NATURALE 06 / 29 GENNAIO – 31 3 1020.00
- F6M0DT HLM7L F0758 ROSA 2 06 / 29 GENNAIO – 31 3 3060.00
- FXX14T JFMAL N0000 NERO 06 / 29 GENNAIO – 31 4 1520.00
the word of my interest is just BIANCO NATURALE and i have to esclude FTBVHT HJMOW W0001 for example in the first string. Of course are all word , but in my case FTBVHT HJMOW W0001 not have sense instead BIANCO NATURALE in italian means NATURAL WHITE
with regex is possible to get just the follow text for each string?
- BIANCO NATURALE
- ROSA 2
- NERO
the string that i want to match are always preceded by 3 groups of letters and numbers separated by spaces, the words can contain numbers, for examppe ROSA 2 and the words that i want to match are always followed at the end by a space and then one or more numbers 06 / 29 GENNAIO ( rappresent the fomrat datetime )
Read more here: Source link