Are the records always one word followed by the units? If that’s the case you can also use a Cell Splitter with array size 2 with a space as delimiter.
It is a really good base but I had to add one thing
.(?=[0-9,]{3,}.[mlMLlLmgMGgGkgKGml]+) added an asterix between the quantity and the unit becase either no space or 4 blank space can be expected like , 500g or 499 ML.
Also, I would expect to get 1,2 KG but also 1.2 KG (comma or period delimiter)
Hi,
In Regex the backslash is an escape character, but it also is in our String Manipulation node. So there you need to escape each backslash with another backslash. And remember to surround it with double quotes.
Kind regards
Alexander
The thing is my regex captures what I want on my dataset, but the moment I apply positive lookahead, it wants to cut off part of my capture - which I obiously dont want.
@ArjenEX
I would need for a little bit more help on Regex please as some requirements has changed.
I have a table with quantities as following:
6 x 700 mg
2X250ml 500 ML 0,7 Kg 300,50 gr 250 - 300gr
Could you please help me with the regex that only parses out those? I have spent way more time on this and there is always a hickup in my expression, or I could do it but with 2 separate expression but I would like to learn how to simplify things.