Hi everyone,
I am having problem with with regex expression. I have three different pdf documents. I need to extract some data. Data is changed based on requirement. That’s why I am using regex based extractor to extract the data if available.
First, I need to extract weight data (only value i.e 2.0/2.2/1.5). I have written regex expression for that. But it doesn’t work.
Weight (kg) : 2.0 Kg
Wt. (kg) : 2.2 Kg
Weight(kg) : 1.5 Kg
Second, I need to extract length, width and height data (only value) separately. But I am confused about the regex expression because data is given in different format. How can I write?
For example:
I tried your solution. Unfortunately, it did not work. Because you consider only one whitespace between the data. But for some cases, there is more than one whitespaces in my dataset.