I'm creating a new column with some regex statements. I have the tough regex bit figured out but the else statement returns <no data>? Any ideas as to why this is? I have several other if containing column formula of the same syntax that return the else statements.
The formula should return the integer directly before " ct" or "ct" or should return "bulk".
For example:
:Packaging :Packaging_Ct
abso 400ct 400
ebso 100 ct 100
fiber bulk
Data Table("MetaDataGelSplit") << New Column(
"Packaging_Ct",
Character,
Nominal,
formula(
If(
Num( Regex( :Packaging, "\d+(?=\s+ct)" ) ) > 0, Regex( :Packaging, "\d+(?=\s+ct)" ),
Num( Regex( :Packaging, "\d+(?=ct)" ) ) > 0, Regex( :Packaging, "\d+(?=ct)" ),
"bulk"
)
)
);
Thanks in advance for the help.